Re: asm grep



Charles Crayne <ccrayne@xxxxxxxxxx> wrote in part:
Robert Redelmeier <redelm@xxxxxxxxxxxxxxx> wrote:
True enough, but this technique is limited to small files,
say under 2 GB or you get into the same blockbreaks.
Think of running grep against /dev/hda -- I have.

Leaving aside the fact that the current generation of PC's
extends this limit by another four orders of magnitude,

True, but basically only when running a 64bit OS.

there is a major performance difference between checking
for blockbreaks once every 2 GB vs every "512 or 4096 bytes".

In theory, certainly. In practice, I'm less sure with
rare matches and an anchor search. blockbreaks only
need to be dealt with for anchor matches.

-- Robert


.