in reply to Re^2: Fast file searching
in thread Fast file searching
Recent enhancements to pack/unpack format and the fact that the format has to be interpreted every time where a regex, at some level is, 'compiled' the first time it is used, mean that pack/unpack are often slower these days.
If you use split you are using the regex engine anyway and if you need to use multiple calls to substr, the regex engine will nearly always win.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Fast file searching
by Fletch (Bishop) on Apr 12, 2005 at 15:26 UTC | |
by thor (Priest) on Apr 13, 2005 at 00:05 UTC |