in reply to Script exponentially slower as number of files to process increases

BTW, @text is an awfully big array. Think it might cause swapping?

  • Comment on Re: Script exponentially slower as number of files to process increases
  • Download Code

Replies are listed 'Best First'.
Re^2: Script exponentially slower as number of files to process increases
by choroba (Cardinal) on Jan 27, 2023 at 09:06 UTC
    In my answer, I show how to process the output line by line instead. It didn't change the exponential behaviour, though.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]