in reply to Tip on better performance: Open and close output file or leave it open?
yep common consensus would suggest opening /closing file handles will be wasteful
but yes go ahead and time it