Skip to content

perf: avoid match-data allocation in lsp--file-process-event#5016

Merged
jcs090218 merged 1 commit intoemacs-lsp:masterfrom
kevinji:fix-lsp-file-process-event
Mar 15, 2026
Merged

perf: avoid match-data allocation in lsp--file-process-event#5016
jcs090218 merged 1 commit intoemacs-lsp:masterfrom
kevinji:fix-lsp-file-process-event

Conversation

@kevinji
Copy link
Copy Markdown
Contributor

@kevinji kevinji commented Mar 13, 2026

Previously, string-match was allocating match-data on every iteration of the inner watcher loop; string-match-p avoids this.

Separately, defer glob-pattern lookup to the cache-miss path.

Previously, string-match was allocating match-data on every iteration
of the inner watcher loop; string-match-p avoids this.

Separately, defer glob-pattern lookup to the cache-miss path.
@jcs090218 jcs090218 merged commit 4e23b03 into emacs-lsp:master Mar 15, 2026
15 of 18 checks passed
@jcs090218
Copy link
Copy Markdown
Member

Thank you!

@kevinji kevinji deleted the fix-lsp-file-process-event branch March 15, 2026 22:10
@kevinji kevinji mentioned this pull request Mar 18, 2026
7 tasks
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