Re: [xml] speed between XPath & SAX & xmlReader



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]