[Bioperl-l] flushing i/o with TreeIO
Aaron J Mackey
Aaron J. Mackey" <amackey@virginia.edu
Fri, 12 Jul 2002 08:05:21 -0400 (EDT)
On Fri, 12 Jul 2002, Ewan Birney wrote:
> We could call flush at the end of every sequence write
That's what I meant - not close nor autoflush. Just a simple $fh->flush.
> ... as a flag which you can switch off if you want better performance.
Sure, the default is to flush, optionally not to flush ... right?
> But basically I agree with Jason - the caller has to be responsible
> for closing the stream to guarentee file semantics...
Then $seqIOout->close() should always do the trick; let's not force people
to jump through our internal hoops with $seqIOout->fh->close.
I'd be happy to institute these changes, once I hear a consensus ...
-Aaron
--
Aaron J Mackey
Pearson Laboratory
University of Virginia
(434) 924-2821
amackey@virginia.edu