Commit e1eff20
authored
Add inline attribute to String::from_str_in (#290)
Saw that `String::from_str_in` pop up in my own application benchmark
profiling. It seems like a good candidate for inlining as
`String::with_capacity_in` is inlined and `String::from_str_in` isn't
doing much work other than that.
Running the bumpalo benchmarks, the from_str_in did not see any changes,
though my own benchmarks show a consistent 5-10% improvement in latency.1 parent 44a07b9 commit e1eff20
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
| 682 | + | |
682 | 683 | | |
683 | 684 | | |
684 | 685 | | |
| |||
0 commit comments