On 21 January 2011 19:22, Paul Eggert <[email protected]> wrote: > 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.
You can't simply by running grep. At the moment, there is no way to decompress while running grep. I'm sorry, I thought you were asking how you would attack an existing problem with the new syntax, to which my reply was, use the old syntax; but in fact you were addressing the implementation. This is an interesting suggestion, not just because of performance reasons, but because I was trying to interface at the library level, while using a decompressor program directly would avoid having to do API impedance matching. -- http://rrt.sc3d.org
