Re: [xml] speed between XPath & SAX & xmlReader
- From: Kasimier Buchcik <K Buchcik 4commerce de>
- To: nico <sl1200mk2 free fr>
- Cc: ML-libxml2 <xml gnome org>
- Subject: Re: [xml] speed between XPath & SAX & xmlReader
- Date: Mon, 24 Oct 2005 17:14:40 +0200
Hi,
On Mon, 2005-10-24 at 15:31 +0200, nico wrote:
______________________________________________________________________
this is my error check for parsing file
if ( NULL == (doc = xmlParseFile(file))) {
return NULL;
}
i don't if it slow down the code
I still don't understand. Hmm, you are not asking if
1 additional pointer comparison will slow down the code, are you? ;-)
Try to look at xmllint.c in the source code; it uses
xmlReadFile() to parse the document. Maybe doing that can
answer your question.
Hi,
On Mon, 2005-10-24 at 14:26 +0200, nico wrote:
hi
do you include error check for such result?
Le 24 oct. 05, à 14:14, Kasimier Buchcik a écrit :
I get the following times for an example
document
with 100 nodes and xmllint's default parsing
which
includes deallocation:
real 0m0.003s
user 0m0.002s
sys 0m0.001s
I don't know what you mean with "include error check".
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]