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

chore: Improve dev build startup time #11692

Merged
merged 1 commit into from
May 11, 2024

Conversation

osiewicz
Copy link
Contributor

RustEmbed repeatedly compiled regexes for handling of 'include='/'exclude' statements in a hot loop, which caused each call to Assets::iter() to take 600ms. Since it is being called twice on our startup path, that alone contributed over a second to startup time in debug builds. I've filed a PR with them pyrossh/rust-embed#244 which brings down the time for a single iter() call to 6ms.

Release Notes:

  • N/A

RustEmbed repeatedly compiled regexes for handling of 'include='/'exclude' statements in a hot loop, which caused each call to Assets::iter() to take 600ms. Since it is being called twice on our startup path, that alone contributed over a second to startup time in debug builds. I've filed a PR with them pyrossh/rust-embed#244 which brings down the time for a single iter() call to 6ms.
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label May 11, 2024
@osiewicz osiewicz merged commit fa04f75 into main May 11, 2024
8 checks passed
@osiewicz osiewicz deleted the bump-rust-embed-debug-perf-improvements branch May 11, 2024 08:10
osiewicz added a commit to RemcoSmitsDev/zed that referenced this pull request May 18, 2024
RustEmbed repeatedly compiled regexes for handling of
'include='/'exclude' statements in a hot loop, which caused each call to
Assets::iter() to take 600ms. Since it is being called twice on our
startup path, that alone contributed over a second to startup time in
debug builds. I've filed a PR with them
pyrossh/rust-embed#244 which brings down the
time for a single iter() call to 6ms.

Release Notes:

- N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant