You'll need to dave_the_m or someone similar to explain why the regex engine would consume more memory than index, even for an apparently similar, simple search, but it would not surprise me if it does.
In the meantime, have you tried reducing my $max_threads = 10;? Did that make a difference?
Other questions.
dumpbin /headers \path\to\your\perl.exe
In particular, these lines:
1000000 size of stack reserve 1000 size of stack commit 100000 size of heap reserve 1000 size of heap commit
See Use more threads. for why.
In reply to Re: Memory Usage in Regex On Large Sequence
by BrowserUk
in thread Memory Usage in Regex On Large Sequence
by bernanke01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |