in reply to Re^2: Performance problems on splitting long strings
in thread Performance problems on splitting long strings

Probably there is some way to do the filtering and splitting in one go. A similar idea was discussed in Regex matching on grid alignment and A regex that only matches at offset that are multiples of a given N?.

  • Comment on Re^3: Performance problems on splitting long strings

Replies are listed 'Best First'.
Re^4: Performance problems on splitting long strings
by Laurent_R (Canon) on Jan 31, 2014 at 07:39 UTC
    Well, yes, I am using a data pipeline afterwards, something like this:
    my $field16 = join '|', sort grep {exists $hash{$_}} @subfiedls;
    but I wanted to keep the splitting separate to start with because I suspected that I might have a performance problem with it and therefore wanted to have it as a separate instruction to enable finer benchmarking.