in reply to Hypothesis: some magic string optimalization in perl kills my server from time to time
I had what I think is a similar problem. When I changed my whitespace eater to
my $ws = qr/(?:#.*|\s+)*+/; # white space
the problem went away. Try it and let us know. Also something like
my $ws = qr/(?:#.*+|\s++)*/; # white space
should work, or
my $ws = qr/(?>(?:#.*|\s+)*)/; # white space
anything that will not give back after matching.
|
|---|