in reply to What is the most efficient way to split a long string (see body for details/constraints)?

the best way to go here from a performance perspective?

Best performance means different things to different people. You might want to minimize any, some or all of: inaccuracies, RAM usage, CPU usage, wallclock time, etc.

If we assume wallclock time then the limiting factor is likely to be just reading 30GB of data in the first place. Anything you do with split or substr will probably be dwarfed by that. Start by profiling and see where the bottlenecks lie.

  • Comment on Re: What is the most efficient way to split a long string (see body for details/constraints)?

Replies are listed 'Best First'.
Re^2: What is the most efficient way to split a long string (see body for details/constraints)?
by mikegold10 (Acolyte) on Jun 19, 2019 at 15:53 UTC
    Best performance in terms of wall-time...