I made an simple performance test for both =Nil and .Close:
for i=1 to 100000
B=F.OpenAsBinaryFile(true)
B.Close // or B=Nil
next
There is no difference in execution time between both (around 85
Microseconds for each i). Tested with different files between 1k and
100 MB (but results are independent of file size).
Also this version results in the same speed:
for i=1 to 100000
dim B as BinaryStream=F.OpenAsBinaryFile(true)
next
As there is no time penalty for Nil a stream instead of closing it,
Nil is the best solution.
Paul
Am 23.01.2007 um 22:15 schrieb [EMAIL PROTECTED]:
On Jan 23, 2007, at 20:34 UTC, Paul Gaspar wrote:
I have a stream which is always open but needs to be closed
regularely to force a physical write of the data to disk (because of
the .Flush bug, http://www.realsoftware.com/feedback/viewreport.php?
reportid=xltobpqb).
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>