mirror of
https://github.com/servo/servo.git
synced 2025-09-27 23:30:08 +01:00
Moves to FxHashMap for Allocator, BHM, Canvas, Media, Servo, WebGL and WebGPU (#39202)
This moves more of HashMap/FnvHashMap to FxHashmap. Again we only changed instances that do not look security related and have small keys. Additionally, allocator used the fnv feature which did not seem to be used. Testing: Unit Tests and WPT should cover this and functionality change is highly unlikely. Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
This commit is contained in:
parent
228b240635
commit
d2c78db981
19 changed files with 53 additions and 46 deletions
|
@ -11,12 +11,12 @@ rust-version.workspace = true
|
|||
path = "lib.rs"
|
||||
|
||||
[features]
|
||||
allocation-tracking = ["backtrace", "fnv"]
|
||||
allocation-tracking = ["backtrace", "dep:rustc-hash"]
|
||||
use-system-allocator = ["libc"]
|
||||
|
||||
[dependencies]
|
||||
backtrace = { workspace = true, optional = true }
|
||||
fnv = { workspace = true, optional = true }
|
||||
rustc-hash = { workspace = true, optional = true }
|
||||
|
||||
[target.'cfg(not(any(windows, target_env = "ohos")))'.dependencies]
|
||||
libc = { workspace = true, optional = true }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue