Skip to content

Conversation

emmanueltouzery
Copy link
Contributor

fixes #1841

i also attempted to use vim.fn.matchstrpos to avoid the substring operations, but it seems it's not really the substring that's slow, but truly the regexes (or the populating of the locality map).

this is a very simple fix that solves a really problematic issue.

@emmanueltouzery
Copy link
Contributor Author

emmanueltouzery commented Aug 28, 2025

note that the integration test failure is unrelated to this PR (it doesn't find lua 5.1 or something like that).

emmanueltouzery added a commit to emmanueltouzery/nvim_config that referenced this pull request Aug 28, 2025
@emmanueltouzery
Copy link
Contributor Author

also i did measure performance a little to pick the 5000... at 5000 it's instant for me. at 50.000 there is a little delay, <1s. at 250.000 it takes 5 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slowdown with large files due to locality map
1 participant