Problem: If the string is very large with lots of occurances of 'X', your @offsets array is being constantly resized and copied as you add new values.
In reply to Re^2: Producing a list of offsets efficiently
by BrowserUk
in thread Producing a list of offsets efficiently
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |