Commit 340b91f
committed
Remove hasher pool from ctrie
The reduced memory allocations from using a hasher pool turns out to be
less efficient than just allocating a hasher per operation. On my
machine, this yields about a 14% speedup on Insert, 29% speedup on
Lookup, and 33% speedup on Remove. Also benchmarked sustained inserts.1 parent 371ee25 commit 340b91f
1 file changed
+3
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 43 | | |
48 | 44 | | |
49 | 45 | | |
| |||
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
62 | | - | |
63 | 58 | | |
64 | 59 | | |
65 | 60 | | |
| |||
280 | 275 | | |
281 | 276 | | |
282 | 277 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | 278 | | |
288 | 279 | | |
289 | 280 | | |
290 | | - | |
291 | 281 | | |
292 | 282 | | |
293 | 283 | | |
| |||
451 | 441 | | |
452 | 442 | | |
453 | 443 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
461 | 447 | | |
462 | 448 | | |
463 | 449 | | |
| |||
0 commit comments