Skip to content

Compile regex once in spec-list#390

Merged
alexander-yakushev merged 1 commit into
masterfrom
hoist-regex-compilation-in-spec-list
Apr 16, 2026
Merged

Compile regex once in spec-list#390
alexander-yakushev merged 1 commit into
masterfrom
hoist-regex-compilation-in-spec-list

Conversation

@bbatsov

@bbatsov bbatsov commented Apr 15, 2026

Copy link
Copy Markdown
Member

re-pattern was being called inside the filter predicate in spec-list, recompiling the same regex for every spec in the registry. Hoisted it outside the closure.

re-pattern was called inside the filter predicate, recompiling
the regex for every spec in the registry.
@alexander-yakushev alexander-yakushev merged commit 99afb00 into master Apr 16, 2026
12 checks passed
@alexander-yakushev alexander-yakushev deleted the hoist-regex-compilation-in-spec-list branch April 16, 2026 10:03
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