Skip to content

fix(previewer): improve file_maker line splitting and timeouts#3261

Open
jamestrew wants to merge 1 commit intonvim-telescope:masterfrom
jamestrew:file-maker-split
Open

fix(previewer): improve file_maker line splitting and timeouts#3261
jamestrew wants to merge 1 commit intonvim-telescope:masterfrom
jamestrew:file-maker-split

Conversation

@jamestrew
Copy link
Copy Markdown
Contributor

@jamestrew jamestrew commented Aug 18, 2024

Previous method of splitting files into lines and incorporating a timer is sub-optimal in two ways

By avoiding using vim.gsplit, we can avoid some overheads it needs to account for patterns and options, and we can check for timeouts more incrementally (every 200 bytes) to avoid getting caught up in huge singular lines.

Based on quick and dirty benchmarks against large-ish files in the issue above, I'm seeing about a 4-5x speed increase.

@clason
Copy link
Copy Markdown
Contributor

clason commented Apr 11, 2026

@jamestrew rebase?

@jamestrew jamestrew force-pushed the file-maker-split branch from 18a8b8d to ec72152 Compare May 1, 2026 20:36
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.

2 participants