[xml] XPath versus node walking performance.

I've been looking into using XPath rather than walking nodes - does anyone have any experience in the performance differences between these two methods? I spotted in the API for xPath 'xmlXPathCtxtCompile' which suggests possible hashing of the terms/tree. Does 'xmlReadMemory' hash the XML file as it parses it? I am wondering, if on large documents, xPath may be more efficient if it uses hashing. Any input would be welcome!


Experience, n.: Something you don't get until just after you need it. -- Olivier

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]