Skip to content

Commit f1188c1

Browse files
committed
perf: replace string-cache with bucket-level version
1 parent 0c63c33 commit f1188c1

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ swc_css = { version = "0.149.2" }
3030
swc_html = { version = "0.105.1" }
3131
swc_html_minifier = { version = "0.102.1" }
3232
tracing = "0.1.34"
33+
34+
[patch.crates-io]
35+
# Use bucket instead of global mutex for dynamic set
36+
# See: https://github.com/servo/string-cache/pull/268
37+
string_cache = { git = "https://github.com/boshen/string-cache", rev = "8fec3dc6b80b186e81199d179751f2c1f9b9a63a" }

crates/node_binding/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,8 @@ testing_macros = { version = "0.2.5" }
5757
# debug = true
5858
# Automatically strip symbols from the binary.
5959
# lto = true # disabled by now, because it will significantly increase our compile time.
60+
61+
[patch.crates-io]
62+
# Use bucket instead of global mutex for dynamic set
63+
# See: https://github.com/servo/string-cache/pull/268
64+
string_cache = { git = "https://github.com/boshen/string-cache", rev = "8fec3dc6b80b186e81199d179751f2c1f9b9a63a" }

0 commit comments

Comments
 (0)