DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17131>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17131

File writing on Win32 very very very slow

           Summary: File writing on Win32 very very very slow
           Product: Xerces-C++
           Version: 2.2.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


xercesc/util/Platforms/Win32/Win32PlatformUtils.cpp opens files for writing with
the FILE_FLAG_WRITE_THROUGH flag set.  This causes all writes to be synchronous
(flushed immediately to disk).  When Xerces is serializing XML, it tends to
write relatively small chunks (a few bytes at a time).

This means that serializing XML to a file on Windows is very, very, very slow
(and thrashes the disk mightily).  Simply removing FILE_FLAG_WRITE_THROUGH is
almost certainly the correct answer, at least by default.

This is the equivalent to opening the file O_SYNC, which the Unix side does not do.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to