[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[xml] Length xmlTextReaderConst... contents?
- From: Ralf Junker <ralfjunker gmx de>
- To: xml gnome org
- Subject: [xml] Length xmlTextReaderConst... contents?
- Date: Thu, 10 Apr 2008 17:28:26 +0200
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.
So here is my question:
Is the text length already stored within xmlTextReader so I can just call a function to retrieve it quickly? I am sure that this would be considerably faster than calling strlen() on gigabytes of text.
Many thanks,
Ralf
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]