comparison src/quickfix.c @ 29071:b90bca860b5a v8.2.5057

patch 8.2.5057: using gettimeofday() for timeout is very inefficient Commit: https://github.com/vim/vim/commit/6574577cacd393ab7591fc776ea060eebc939e55 Author: Paul Ollis <paul@cleversheep.org> Date: Sun Jun 5 16:55:54 2022 +0100 patch 8.2.5057: using gettimeofday() for timeout is very inefficient Problem: Using gettimeofday() for timeout is very inefficient. Solution: Set a platform dependent timer. (Paul Ollis, closes https://github.com/vim/vim/issues/10505)
author Bram Moolenaar <Bram@vim.org>
date Sun, 05 Jun 2022 18:00:08 +0200
parents 18604231a1d1
children 827d9f2b7a71
comparison
equal deleted inserted replaced
29070:8bf8001ef6d5 29071:b90bca860b5a
5988 col = 0; 5988 col = 0;
5989 if (!(flags & VGR_FUZZY)) 5989 if (!(flags & VGR_FUZZY))
5990 { 5990 {
5991 // Regular expression match 5991 // Regular expression match
5992 while (vim_regexec_multi(regmatch, curwin, buf, lnum, 5992 while (vim_regexec_multi(regmatch, curwin, buf, lnum,
5993 col, NULL, NULL) > 0) 5993 col, NULL) > 0)
5994 { 5994 {
5995 // Pass the buffer number so that it gets used even for a 5995 // Pass the buffer number so that it gets used even for a
5996 // dummy buffer, unless duplicate_name is set, then the 5996 // dummy buffer, unless duplicate_name is set, then the
5997 // buffer will be wiped out below. 5997 // buffer will be wiped out below.
5998 if (qf_add_entry(qfl, 5998 if (qf_add_entry(qfl,