Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache an error parser regex #287

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Cache an error parser regex #287

merged 1 commit into from
Oct 13, 2024

Conversation

DaniPopes
Copy link
Contributor

@DaniPopes DaniPopes commented Oct 13, 2024

A regex in rustc_stderr gets created on every JSON stderr line, which shows up in profiles when running thousands of tests.
Cache it with OnceLock (MSRV 1.70, also used elsewhere in the codebase).

@oli-obk
Copy link
Owner

oli-obk commented Oct 13, 2024

Oops, good catch

@oli-obk oli-obk merged commit 02ba57d into oli-obk:main Oct 13, 2024
8 checks passed
@DaniPopes DaniPopes deleted the cache-regex branch October 13, 2024 17:59
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