[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: slow SORT by fields other than the first
From: |
Hughes, Jason D |
Subject: |
RE: slow SORT by fields other than the first |
Date: |
Thu, 16 Sep 2004 19:14:20 -0400 |
I figured it out. It is a UTF-8 processing thing. Setting LANG=C fixes it.
-Jason
> -----Original Message-----
> From: Hughes, Jason D
> Sent: Thursday, September 16, 2004 6:23 PM
> To: 'address@hidden'
> Subject: slow SORT by fields other than the first
>
>
> "sort -k2" is *much* slower than "sort -k1" on a new Linux installation.
> "sort -k3" is even slower. I have never found this to be the case before.
>
> The new system is Suse9.1, dual Opteron, 64-bit mode. I have a
> near-identical machine running Suse9.0 in 32-bit mode. The 64-bit system
> is usually just a bit faster in every benchmark. "sort" is the big
> exception. The effect is a 10-100x slowdown.
>
> I can rule out most hardware or kernel effects since I have programs that
> do similar things running as expected. It seems that the algorithm for
> parsing fields in sort has been changed for the worse. Is there anything
> I can do about this?
>
> Thanks.
>
> -Jason
>
>
LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be
privileged. It is intended for the addressee(s) only. Access to this E-mail by
anyone else is unauthorized. If you are not an addressee, any disclosure or
copying of the contents of this E-mail or any action taken (or not taken) in
reliance on it is unauthorized and may be unlawful. If you are not an
addressee, please inform the sender immediately.