Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Optimizing a double loop

by GrandFather (Saint)
on Jun 03, 2010 at 22:40 UTC ( #843022=note: print w/replies, xml ) Need Help??


in reply to Re: Optimizing a double loop
in thread Optimizing a double loop

The run time for any solution will be dictated by disk I/O time. At least some options are:

  • get faster disks - a raid array may help
  • store less data - use binary files rather than text files
  • reorganise the data to make retrieval more efficient - one file with 1000 numbers per line maybe? (I doubt this will help much in this case though.)

Of course those options aren't exclusive so you may be able to apply some or all of them. The way the files are generated may exclude some options too.

True laziness is hard work

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2021-10-27 17:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (94 votes). Check out past polls.

    Notices?