in reply to Re: suffix arrays
in thread suffix arrays

You can improve the performance slightly by only looking for matching strings larger than the current maximum.

my $p = length($max);

- Cees