[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Run-time dynamic linking in grep
From: |
Paul Eggert |
Subject: |
Re: Run-time dynamic linking in grep |
Date: |
Fri, 21 Jan 2011 11:22:21 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
On 01/21/2011 11:16 AM, Reuben Thomas wrote:
>> Won't this have bad performance on multicore machines,
>> > compared to doing the decompression in a separate process?
> If it does, you can do the decompression in a separate process.
Sorry, I don't follow. In the common case where I'm
doing a 'grep -r', and some files are compressed but
others are not, how can I, as a 'grep' user, do the decompression
in a separate process? I don't see any easy way to do that.
>> > Has the performance of this change been tested recently
>> > on modern machines?
> No.
I suggest trying it out, and doing decompression either in
grep (using zlib) or in a separate process (using gzip), before
committing to the former implementation. No doubt it depends
on the data, but it could be that in typical cases the
separate-process approach is faster on modern processors.
Also, the separate-process approach is likely to be easier
to implement and easier for the user to plug in their own
decompressor.
- Re: Run-time dynamic linking in grep, (continued)
- Re: Run-time dynamic linking in grep, Gilles Espinasse, 2011/01/21
- Re: Run-time dynamic linking in grep, Reuben Thomas, 2011/01/21
- Re: Run-time dynamic linking in grep, Jim Meyering, 2011/01/21
- Re: Run-time dynamic linking in grep, Reuben Thomas, 2011/01/21
- Re: Run-time dynamic linking in grep, Jim Meyering, 2011/01/21
- Re: Run-time dynamic linking in grep, Paul Eggert, 2011/01/21
- Re: Run-time dynamic linking in grep, Reuben Thomas, 2011/01/21
- Re: Run-time dynamic linking in grep,
Paul Eggert <=
- Re: Run-time dynamic linking in grep, Reuben Thomas, 2011/01/21