Commit b6f985c
committed
perf: change size_to_class to inline(always) for hot path
The size_to_class function is called on every alloc and dealloc.
Changing from #[inline] to #[inline(always)] ensures it's always
inlined, eliminating function call overhead and allowing the LUT
lookup to be optimized with the surrounding code.1 parent ff0e8a4 commit b6f985c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
| |||
0 commit comments