Subject: | skip_ws performance improvement |
(split out from https://rt.cpan.org/Ticket/Display.html?id=66786)
Another note: the time spent in wkip_ws can be reduced to about half by
computing a 'skip' pattern at the constructor that combines the 'ws' and
'comment' patterns, and replace the '1 while m//' by just a match on 'skip'.
In a test script it reduced the time spent in the skip_ws method
(exclusive time) from 4.57s to 2.59s, as reported by Devel::NYTProf.
Best regards,
Paulo Custodio