On Fri, Oct 05, 2007 at 05:27:11AM +1000, Graham Williams wrote: > > So clearly this is an egrep bug, and should be reassigned. Although now > > 'wajig new' still takes 3.3 seconds, which is a little sluggish. It > > looks like the data passes through a mish-mash of shell tools, which we > > can probably speed up a bit. Any interest in a patch? > > Thanks for that Peff. A patch is most welcome.
I think I will hold off on that patch for now...I seem to have tracked down the performance issues with egrep, and now wajig is suddenly much faster. :) At the new speeds I'm getting, I don't think it's worth mucking with the code. > However, that is certainly very peculiar of egrep. I'm using the same > version and see the opposite behaviour? I did a little profiling, and it looks like the problem is related to wide character handling. My guess is that your locale is "C". Try: $ time LANG=en_US.UTF-8 grep Package /var/lib/dpkg/available >/dev/null real 0m40.694s user 0m39.146s sys 0m0.288s $ time LANG=C grep Package /var/lib/dpkg/available >/dev/null real 0m0.100s user 0m0.048s sys 0m0.048s So the problem is actually grep's handling of wide characters; downgrading masked the problem because it's not nearly as bad in 2.5.1 I'll reassign the bug to grep. Thanks for your responses; I was just assuming that it was slow for everyone. :) -Peff -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]