Matching Puzzle Pieces and Disappointing Benchmarks
Summary
A technical Rust blog post comparing three approaches to case-insensitive sorting: sort_by_cached_key with to_lowercase, a manual per-character lowercase comparison, and unicase. It includes benchmarks showing that sort_by_cached_key is generally faster for larger datasets, while per-character lowercasing can be slower than expected, with unicase sometimes winning. Useful for developers optimizing string sorting and Unicode handling in performance-critical Rust code.