in reply to Optimum method to perform data extraction in a table

If the data file is much larger than what you have shown us, your program might benefit from reading from the source line by line (instead of reading the whole file once and split it on newline, as you currently do it).

Apart from that I see some potential for micro optimizations like using index instead of some regexes - but is the trouble really worth it? Is that program actually slow? it doesn't look to me like it should be slow.

Perl 6 - links to (nearly) everything that is Perl 6.
  • Comment on Re: Optimum method to perform data extraction in a table

Replies are listed 'Best First'.
Re^2: Optimum method to perform data extraction in a table
by perlpal (Scribe) on Jan 08, 2010 at 06:07 UTC

    Currently the program is not slow. but as you pointed out , the data file entries increase by leaps and bounds over a period of time during which the program does become slow.

    Thank you for the inputs.