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

Use regex for faster manifest/typedef detection #976

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

TwitchBronBron
Copy link
Member

Adds slightly faster performance to the logic updated in #942 when dealing with large file lists. This probably doesn't make much difference in practice, but hey, free cycles are free cycles!

The javascript engine will compile and cache regex expressions, so we can use them inline. We also avoid calling `.toLowerCase() because it's fairly expensive.

image

@TwitchBronBron TwitchBronBron merged commit 70c487e into master Dec 4, 2023
6 checks passed
@TwitchBronBron TwitchBronBron deleted the faster-file-checking branch December 4, 2023 19:13
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.

None yet

1 participant