in reply to Re: threads and multiple filehandles
in thread threads and multiple filehandles
Hi, I was playing around somemore with it, and found that the fastest search is perl's regex engine
This was faster than running backticks with the c grep.# slurp file into $buf if( $buf =~ /($searchnum)/ ){....}
So I guess the trick is decide on how much memory you want to use at any one moment, read in overlapping segments of the file of that size, then regex it.
|
|---|