2 Commits
Author SHA1 Message Date
Sampo Kuokkanen 13fe77dd2b Add an ASCII fast path for String#casecmp?
String#casecmp? folds both operands with a Unicode case fold, allocating two new strings, and compares the results. For ASCII-only strings, Unicode case folding is equivalent to ASCII case-insensitive comparison, so the operands can be compared byte-by-byte without allocating anything.
2026-06-23 22:29:36 +09:00
Nobuyoshi Nakada 5e897227ff Added more benchmarks for String 2020-02-29 15:42:24 +09:00