Skip to content

Conversation

@ChrisDryden
Copy link
Collaborator

Was looking through @sylvestre's pr related to sorting and locale and the regressions did not make intuitive sense to me. The issue is that the OnceCell locks the locale after the first run so that since the first run is using a non C locale it slows down the C locale run.

By splitting the benches to be locale specific it will actually benchmark what we are looking to benchmark

@ChrisDryden ChrisDryden force-pushed the fix/sort-locale-benchmarks branch from 1fa959e to 4e80f2b Compare December 30, 2025 21:31
@ChrisDryden ChrisDryden marked this pull request as ready for review December 30, 2025 22:45
@ChrisDryden ChrisDryden changed the title Fix/sort locale benchmarks sort: fixing locale benchmarks since locale is cached in OnceCell Dec 30, 2025
@sylvestre sylvestre merged commit 4e3a860 into uutils:main Dec 31, 2025
128 of 129 checks passed
sgmarz pushed a commit to sgmarz/coreutils that referenced this pull request Jan 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants