Re: [xml] avoiding unnecessary copying with xmlreader



On Fri, Jul 04, 2003 at 08:48:52PM +0100, Graham Bennett wrote:
On Fri, Jul 04, 2003 at 05:25:23AM -0400, Daniel Veillard wrote:
  Can you check the option of directly accessing the underlying temporary
node ? If this does not work, then extending the API is the only solution
I'm afraid, and not all existing xmlTextReaderPtr based API would be 
available without that string copy, sometimes the data doesn't exists as a 
already available string.

Yep I'll try this approach.  I guess the downside is that it will make
my code more sensitive to internal changes in the structure from release
to release.

  Well that function is part of the API so I don't expect to change this.
And I don't expect to change the structure for nodes anytime soon either,
so it should not be considered "unstable", really.

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]