At 3.5 seconds per offset it will complete in roughly 3 years ;-) Nonetheless XOR works quickly in Perl. A small optimisation is to take the substr outside the inner keys loop as you are doing it 499,999 more times than required per offset.
Real sample data would be nice. The benefits from indexing depend on the alphabet size and the number of find strings.
cheers
tachyon
In reply to Re^2: Fuzzy Searching: Optimizing Algorithm Selection
by tachyon
in thread Fuzzy Searching: Optimizing Algorithm Selection
by Itatsumaki
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |