flexstr
flexstr copied to clipboard
Ref counted types missing pointer comparison optimization for `eq`
Arc<str>
compares pointers first which normal reference equality checks do not perform.
See https://htmlpreview.github.io/?https://github.com/epage/string-benchmarks-rs/blob/master/runs/2023-10-10/eq/report/index.html for a benchmark showcasing the behavior from this