expand('**', 1, 1) than globpath('.', '**', 1, 1).| Environment | expand (s) | globpath (s) | expand faster |
|---|---|---|---|
| WSL (small) | 0.0491 | 0.0537 | 9.4% |
| Windows (large) | 1.6606 | 2.3565 | 41.9% |
https://github.com/vim/vim/pull/20767
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
expand() is indeed faster than globpath() on my win machine:
vim9script
cd C:/Windows
var start = reltime()
var exp = expand('**', 1, 1)
append('$', '# ' .. reltimestr(reltime(start)))
# 96.272363
vs
vim9script
cd C:/Windows
var start = reltime()
var exp = globpath('.', '**', 1, 1)
append('$', '# ' .. reltimestr(reltime(start)))
# 122.216585
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Slightly faster on my Mac too, in a GH repo with c. 230K files...
globpath('.', '**', 1, 1) -> 8.745012
expand('**', 1, 1) -> 8.201965
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()