Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: A very odd happening (at least. . . to me)

by kvale (Monsignor)
on Jun 24, 2002 at 16:09 UTC ( [id://176844]=note: print w/replies, xml ) Need Help??


in reply to A very odd happening (at least. . . to me)
in thread Processing large files many times over

Well, there is a lot happening in the two pieces of code, so it is hard to say for sure what is making the second version faster. But one thing you have improved is replacing all that array copying with splicing. Even better would be to manipulate just indices of the single @lines array for your computations.

-Mark
  • Comment on Re: A very odd happening (at least. . . to me)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-23 23:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found