[Top][All Lists]

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

Re: [Zutils-bug] zgrep performance long line

From: Antonio Diaz Diaz
Subject: Re: [Zutils-bug] zgrep performance long line
Date: Fri, 17 Aug 2018 20:10:40 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv: Gecko/20110420 SeaMonkey/2.0.14

Walter Anema wrote:
I think that your messages_nnl.gz can be processed faster with
$ time zcat messages_nnl.gz | fold -s -w10000 | grep -o connect  | wc

Folding makes it slightly slower.

I managed to create another file without private data using the script

while [ $i -lt 10 ]; do
    while [ $j -lt 8000000 ]; do
       printf "%s "  $RANDOM
    printf "%s" "connect"
done>  largefile

I have tried the code above (which, BTW, puts the 10 "connect" together at the end of the file. Not sure that is what you intended) and still I can't see any differences between gzip and zutils. Take into account that the times in my last mail were from my slow machine (AMD K6-2 450 MHz). On my desktop machine both gzip and zutils take about 1.2s to zgrep largefile.gz.

Best regards,

reply via email to

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