sobering observation, python vs. perl
Charles T. Smith
cts.private.yahoo at gmail.com
Thu Mar 17 11:59:30 EDT 2016
On Thu, 17 Mar 2016 17:48:54 +0200, Marko Rauhamaa wrote:
> "Charles T. Smith" <cts.private.yahoo at gmail.com>:
>
>> On Thu, 17 Mar 2016 15:29:47 +0000, Charles T. Smith wrote:
>>
>> And for completeness, and also surprising:
>>
>> time sed -n -e '/ is ready/{s///;h}' -e '/release_req/{g;p}' *.out | sort -u
>> TestCase_F_00_P
>> TestCase_F_00_S
>> TestCase_F_01_S
>> TestCase_F_02_M
>>
>> real 0m10.998s
>> user 0m10.885s
>> sys 0m0.108s
>>
>> Twice as long as perl... I guess there's no excuse for sed anymore...
>
> Try running the sed command again after setting:
>
> export LANG=C
>
>
> Marko
Hmmm. Interesting thought. But...
$ locale
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE=C
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
More information about the Python-list
mailing list