coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coreutils] [PATCH] sort: -h now handles comparisons such as 6000K v


From: Paul Eggert
Subject: Re: [coreutils] [PATCH] sort: -h now handles comparisons such as 6000K vs 5M and 5MiB vs 5MB
Date: Fri, 30 Jul 2010 11:25:05 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6

On 07/30/10 05:06, Pádraig Brady wrote:
> Perhaps since strtold() is so heavy weight anyway,
> we could strip commas first?

Yes, that's easily doable; I'll look into that soon.

By the way, my ulterior motive for doing this patch is
to fix up the rat's nest of code buried deeply inside
the core comparison operations.  In particular, compare()
is deliberately called on the same line, only for debugging
purposes: this is deeply weird and inhibits some further
optimizations that I have in mind.  Fixing this is also
on my list of things to do, but I'll put the strtold stuff
higher up than that.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]