http://www.perlmonks.org?node_id=523725


in reply to Re: Suggestions for optimizing this code...
in thread Suggestions for optimizing this code...

I do need that array... Maybe what I'll do is read buffered, but write using syswrite. All I'd have to do then is replace:-

open DF,">test.txt"; print DF @test; close DF;


with:-

sysopen(DF,"test.txt", O_WRONLY | O_CREAT); syswrite DF,join('', @test); close DF;


At least then the IO Processes for writing are down to 1!