chore: Improve dev build startup time (#11692)

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
https://github.com/pyrossh/rust-embed/pull/244 which brings down the
time for a single iter() call to 6ms.

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-05-11 10:10:13 +02:00 committed by GitHub
parent 69676c9d33
commit fa04f7514e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View file

@ -26,7 +26,7 @@ node_runtime.workspace = true
project.workspace = true
regex.workspace = true
rope.workspace = true
rust-embed = "8.2.0"
rust-embed.workspace = true
serde.workspace = true
serde_json.workspace = true
settings.workspace = true