flexstr icon indicating copy to clipboard operation
flexstr copied to clipboard

Ref counted types missing pointer comparison optimization for `eq`

Open epage opened this issue 8 months ago • 0 comments

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

epage avatar Oct 10 '23 18:10 epage