in reply to Re^2: pattern match, speed problem
in thread pattern match, speed problem
Or lower case each probe string, that's probably cheaper. Of course if the original data was all the same case then some overhead can be avoided. If the probe strings or the large string are used multiple times then it may be worthwhile preprocessing the data.
orperl -pe'tr/acgt/ACGT/' -i big_string_file
perl -pe'tr/ACGT/acgt/' -i probe_string_file
|
|---|