Commit 54742c6
authored
perf: switch to hashbrown hashmap in the function registry (#399)
# Summary
The function registry as well as the allocator used the standard `std`
hashmap, which by default uses a secure but slow hash. We don't need to
worry about security here, so switching to hashbrown should give us a
fair bit of speed up for free.1 parent 5ebabbf commit 54742c6
File tree
2 files changed
+3
-2
lines changed- crates/bevy_mod_scripting_core/src/bindings
- function
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments