[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: RFC: svn_io_file_flush_to_disk

From: Branko Èibej <brane_at_xbc.nu>
Date: 2004-05-01 21:40:23 CEST

Greg Hudson wrote:

>On Sat, 2004-05-01 at 09:56, Branko Èibej wrote:
>
>
>>Of course, on Windows it would be much better if APR knew how to open
>>the file with FILE_FLAG_WRITETHROUGH...perhaps another flag to
>>apr_file_open that would cause apr_file_close to call fsync on Unix, but
>>open the file in writethrough mode on Windows?
>>
>>
>
>Is that really best? That sounds like the analog of calling fsync()
>after every buffer flush on Unix; given that we're writing a potentially
>large file, that seems much less efficient than syncing once at the end.
>
The docs insist that if you're writing large amounts of data
sequentially, it's faster to disable caching entirely...which makes sense.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 1 21:42:25 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.