A Rust compiler front-end for IDEs
Find a file
Arpad Borsos 29f5ba6318 Add PartialEq shortcut for ptr_eq strings
This first compares the `Repr` before falling back to actually comparing the raw `as_str` itself.
In some micro-benchmarks, this speeds up inline and heap string comparisons when equal by ~70%.

There is a tiny hit in the non-equal case however. It is also noteworthy that the assembly generated for `Repr` is horrible,
and looks like its above the inlining threshold now.
2024-02-08 22:42:21 +01:00
lib/smol_str Add PartialEq shortcut for ptr_eq strings 2024-02-08 22:42:21 +01:00