Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Script exponentially slower as number of files to process increases

by tybalt89 (Monsignor)
on Jan 27, 2023 at 01:25 UTC ( [id://11149915]=note: print w/replies, xml ) Need Help??


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]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11149915]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2024-04-19 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found