|
|
| Just another Perl shrine | |
| PerlMonks |
Re: Optimising processing for large data files.by tachyon (Chancellor) |
| on Apr 10, 2004 at 13:10 UTC ( #344120=note: print w/ replies, xml ) | Need Help?? |
|
Good optimisation. In C you can of course avoid the copy and move overhead of the substr buffer you use and just flip pointers between a pair of buffers to get the sliding window. Runtime on a 1GHz laptop was 10 minutes on a 3GB test file. So the benefits of doing it in C are real but perhaps hardly worth the effort unless saving 20 minutes runtime for adding X minutes coding time makes sense.
cheers tachyon
In Section
Meditations
|
|
||||||||||||||||||||