> http://blog.i-no.de/archives/2008/05/06/index.html
Interesting...
> and apparently, for everyone else but me, ack is WAY FASTER. On my
if it's any comfort, ack has never felt faster when doing simple
searches on single files (ie, not using the "smarts" to ignore some
types of files etc). I just did a test run on a 215 MB file, and ack
takes 2.3 seconds to greps 0.32. (Cache is hot; I made sure)
I thought most of it was perl's startup cost, but when I ran the same
search with all the log files in that directory (totalling approx 420
MB), > mail server, which has an Athlon X2, FC9, x86_64, perl 5.10.0,
ack still takes 4.0 seconds to greps 0.6. (This is a 2-GB RAM
machine, and the cache was hot -- you can't churn though 400 MB in 0.6
seconds on any normal disk that I know of...)
so... someone with more ack knowledge needs to tell us what we are
doing wrong, if any
Ignore the bit that says "> mail server, which has an Athlon X2, FC9,
x86_64, perl 5.10.0,". That sentence should read "...420 MB), ack
still takes..."