Skip to content

buffer/search: only append to deltas when found in ReplaceRegex()#4138

Open
usfbih8u wants to merge 1 commit into
micro-editor:masterfrom
usfbih8u:perf_ReplaceRegex_only_delta_when_matched
Open

buffer/search: only append to deltas when found in ReplaceRegex()#4138
usfbih8u wants to merge 1 commit into
micro-editor:masterfrom
usfbih8u:perf_ReplaceRegex_only_delta_when_matched

Conversation

@usfbih8u

@usfbih8u usfbih8u commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Reduce the amount of deltas to improve performance in large buffers, with only a few matches.

…Regex()

Reduce the amount of deltas to improve performance in large buffers, with only
a few matches.
@usfbih8u

usfbih8u commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

@Andriamanitra, this PR also fixes in mlsp a registry overflow in the Lua VM (table.concat() too many deltas while creating the JSON message in didChange()).

A replaceall in a buffer with ~3400 lines triggers it.

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.

1 participant