|Pathologically Eclectic Rubbish Lister|
Re: Optimizing I/O intensive subroutineby BrowserUk (Pope)
|on Oct 26, 2012 at 16:43 UTC||Need Help??|
Running your routine on 7 files of 200,000 lines apiece (with limit = 1000), takes just 10.5 seconds; and on 100x 200,000 lines takes 145 seconds on my machine.
Showing (as expected) that the runtime is pretty linear with respect to the number of files.
Which make your figures (of 40s for 7 and 1500s for 100) suggest that the majority of time is being spent outside of this routine doing something non linear.
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.