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

Hi Dave, thank you for your input, the truth of the matter is that I am the victim of earlier poor design. The long string that I am talking about is a list of billing services for a client. All billing service codes are 5 character-long. What I need to do with this list (with a bit of simplification) is to filter in those services that are of use for our purpose, and to sort them out. The ultimate goal is to compare the two large files after having pre-processed them.
  • Comment on Re^2: Performance problems on splitting long strings

Replies are listed 'Best First'.
Re^3: Performance problems on splitting long strings
by boftx (Deacon) on Jan 31, 2014 at 01:25 UTC

    Sounds like there is going to be a dispatch table in there somewhere to handle what to do with the different billing codes that are of interest. :)

    It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.
Re^3: Performance problems on splitting long strings
by hdb (Monsignor) on Jan 31, 2014 at 07:21 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.