Changes for version 1.52 - 2006-12-22
- In 1.51_01, I changed how we check the -B of a file, but it's not reliable. Perl's -B operator acts differently if you call -B $filename vs. -B $fh.
- I changed some internal code to figure out a file's extension. By using my own, instead of File::Basename, I cut out over 50% of the run time on my test of acking through a large tree.
- When using -a, it's not necessary to determine the filetype before searching, only if we should ignore the file or not. This cut out an additional 10% or so of execution time when doing -a searces.
- We no longer need to build a list of all used suffixes. This makes startup quicker.
Changes for version 1.51_01 - 2006-12-18
- Development version. I'm putting this out so hardcore ack users can test out some new features.
- Tests now pass under Windows.
- You can now set the colors for display with the ACK_COLOR_MATCH and ACK_COLOR_FILENAME environment variables.
- ack-standalone now builds with a shebang line of "#!/usr/bin/env perl", which is more compatible. Of course, you're welcome to change it to whatever you like.
- I now check for binaryness on the already-open file, rather than reopening it from the filesystem. This gave me about a 1% speedup in my tests.
- Started adding sanity checks to the options. For instance, it doesn't make sense to use -l and -C together, so ack will complain about that.
- Added a --sort-files option.
- More testing on XML and PHP detection courtesy Bill Ricker.
- Lots of refactoring of search() in preparation for showing context around matches.
- App::Ack - A container for functions for the ack program