Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid an unnecessary use of
SmallStr
.
I don't know why `SmallStr` was used here; some ad hoc profiling showed this code is not that hot, the string is usually empty, and when it's not empty it's usually very short. However, the use of a `SmallStr<1024>` does result in 1024 byte `memcpy` call on each execution, which shows up when I do `memcpy` profiling. So using a normal string makes the code both simpler and very slightly faster.
- Loading branch information