refactor(sort): replace named lifetime with anonymous one in LineData impl
Use '_' instead of 'a' for the lifetime parameter in the impl block to simplify and modernize the code without changing behavior.
b245685
1 month ago
by mattsu2020
+34.31%
refactor(sort): simplify lexicographic comparison by removing UTF-8 cache
Remove the unused utf8_cache field from LineData struct and related code for caching UTF-8 strings during line parsing. This simplifies the lexicographic comparison logic in compare_by to always perform byte-level comparison, reducing code complexity and potential maintenance overhead without affecting sorting functionality. The previous cache was intended for faster lexical sorting but is no longer needed.
e54fe82
22 days ago
by mattsu2020
+0.01%
Merge branch 'main' into sort_fix_rebased
2841c8a
22 days ago
by mattsu2020
-3.59%
Merge branch 'sort_fix_rebased' of https://github.com/mattsu2020/coreutils into sort_fix_rebased