in reply to Re^2: Write large array to file, very slow
in thread Write large array to file, very slow
Just ran a quick bench and your suggestion to avoid the copy (++) works very well - it's about twice as fast as my code above. As another test I also tried local $, = "\n"; print $output_fh @mergedlogs; but that's no faster to within statistical noise. I'll run a longer bench later just to see if it's at all significant.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Write large array to file, very slow
by Eily (Monsignor) on Aug 20, 2018 at 16:14 UTC | |
by hippo (Archbishop) on Aug 20, 2018 at 18:11 UTC | |
by Eily (Monsignor) on Aug 21, 2018 at 08:29 UTC | |
by hippo (Archbishop) on Aug 21, 2018 at 08:52 UTC |