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 }
In reply to Re: pattern match, speed problem
by hipowls
in thread pattern match, speed problem
by spring
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |