in reply to pattern match, speed problem
For matching fixed substrings index is faster. It just requires a slight modification to the code
my $position = index $chrom, $_; if ( $position != -1 ) { # we matched }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: pattern match, speed problem
by ysth (Canon) on Feb 20, 2008 at 07:37 UTC | |
by hipowls (Curate) on Feb 20, 2008 at 07:56 UTC |