Re: [xml] libxml2 performance



On Wed, May 29, 2002 at 08:48:22AM +0100, Gary Pennington wrote:
Bjorn Reese wrote:
I'll look at the file access routines as well. There may be 
possibilities to optimise I/O interactions and I have a lot of 
experience in this area.

  At some point I tried to switch all default file access to use mmap
instead of reading the file progressively in a temp buffer, but I faced
quite some complexity in trying to remove the assumption done in some
part of the parser that the end of the buffer can be detected by an ending
zero byte. After going through this exercise I gained only a couple %
of parsing speed on my platform so I dropped. I may still have the
patch somewhere. The idea of having the SAX character() callback pass directly
a memory area from the mmapped file was pleasant (in case of UTF8 encoding 
of the content).

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]