You can improve the performance slightly by only looking for matching strings larger than the current maximum.
my $p = length($max);
- Cees
In reply to Re: Re: suffix arrays
by cees
in thread suffix arrays
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |