Skip to content

quickfix performance regression on Windows #7033

@markonm

Description

@markonm

Describe the bug
Interaction with quickfix window and quickfix list after patch 8.0.1781 suffered slowdown on Windows.

To Reproduce

" measureQuickFix.vim
let filename = tempname()
silent execute 'w' filename
let lines = map(repeat([filename], 10000), '{"filename": v:val}')

let start = reltime()
call setqflist(lines)
echom '  setqflist:' reltimestr(reltime(start))

let start = reltime()
silent copen
echom '  copen:    ' reltimestr(reltime(start))

let start = reltime()
call setqflist(lines)
echom '  setqflist:' reltimestr(reltime(start))

Run: gvim --clean -S measureQuickFix.vim

Output of above script:

v8.0.1780:

setqflist:   0.009004
copen:       0.009129
setqflist:   0.020638

v8.0.1781

setqflist:   0.009413
copen:       3.745755
setqflist:   3.794615

:copen and setqflist are much slower with 8.0.1781 included. Results are the same on the current master.

Expected behavior
Interaction with quickfix is fast as it was before patch 8.0.1781 was included.

Environment (please complete the following information):

  • OS: Windows 10 2004

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions