You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/12/19 12:12:46 UTC

DO NOT REPLY [Bug 15523] New: - slow writing of XML to disk

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=15523>.
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=15523

slow writing of XML to disk

           Summary: slow writing of XML to disk
           Product: Xerces-C++
           Version: 2.1.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: DOM
        AssignedTo: xerces-c-dev@xml.apache.org
        ReportedBy: oliver.kurowski@gmx.de


Writing XML files to disk is very slow (about 20sec for a 1500 byte file) using DOMWriter and 
LocalFileFormatTarget.

Cause is that the windows cache is not used due to the open flags of 
the CreateFileW command.

Solution: in XMLPlatformUtils::openFileToWrite (file: 
Win32PlatformUtils.cpp) all occurencies of "FILE_FLAG_WRITE_THROUGH" must be replaced by 
"0" to use the windows caching system.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org