Re: [xml] Length xmlTextReaderConst... contents?
- From: "Andrew W. Nosenko" <andrew w nosenko gmail com>
- To: "Ralf Junker" <ralfjunker gmx de>
- Cc: xml gnome org
- Subject: Re: [xml] Length xmlTextReaderConst... contents?
- Date: Thu, 10 Apr 2008 18:42:40 +0300
On Thu, Apr 10, 2008 at 6:28 PM, Ralf Junker <ralfjunker gmx de> wrote:
Hello Group!
When I parse huge (several GB) XML files with xmlTextReader, I use the "xmlTextReaderCont..." family of
functions to retrieve various text contents, for example:
xmlTextReaderConstName()
xmlTextReaderConstValue()
>From the documentation I conclude that the "const" functions grant fastest access because no data has to
be copied.
While this works fairly fast, I still need to strlen() through some million pieces of #0-terminated text
to determine their lengths.
Sorry for question, but I'm curious why you need strlen()?.. I would
to expect strcmp() rather...
--
Andrew W. Nosenko <andrew w nosenko gmail com>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]