On 4/10/20 6:19 AM, Ole Tange wrote:
But would it be possible to convert the input string1 into a string in
a generalized format, which would sort the same way as the localized
sort, but using a simple compare?
I tried doing that a long time ago by using strxfrm, but it made 'sort'
I have noticed that if locale is set, then sort becomes much slower.
I imagine that it is because instead of doing
simple_compare(string1,string2)
it does:
localized_compare(string1,string2)
But would it be possible to convert the input string1 into a string in
a generalized format, which
Hello Assaf,
thank you for your quick response!
>
> > it would be nice to be able to sort (coreutils -> sort) Hebrew
> > numerals:
> >
>
> An interesting idea, but I think it is a bit too niche to be included
> in the coreutils “sort” program (tradeoff of usefulness vs bloat).
Roman numerals
$ sort --version
sort (GNU coreutils) 8.28
I am the author of GNU Parallel and my fetish is to try to run more
stuff in parallel. I recently sorted a 2.4 GBytes/100 M lines file:
export LC_ALL=C
time sort --parallel=48 bigfile >/dev/null
This takes 87 seconds on my 48 core machine.