Module: wine Branch: master Commit: 8cb68e43dec6e6bb32fcdf82e03a6d4263dd2354 URL: https://gitlab.winehq.org/wine/wine/-/commit/8cb68e43dec6e6bb32fcdf82e03a6d4...
Author: Hans Leidekker hans@codeweavers.com Date: Fri Feb 2 09:46:56 2024 +0100
msxml3: Enable XPath object cache.
This gives a 30% performance increase in a local test with a very large document.
---
dlls/msxml3/selection.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/msxml3/selection.c b/dlls/msxml3/selection.c index e7c63c7a2b2..fe404abc5e8 100644 --- a/dlls/msxml3/selection.c +++ b/dlls/msxml3/selection.c @@ -788,6 +788,7 @@ HRESULT create_selection(xmlNodePtr node, xmlChar* query, IXMLDOMNodeList **out) ctxt->error = query_serror; ctxt->node = node; registerNamespaces(ctxt); + xmlXPathContextSetCache(ctxt, 1, -1, 0);
if (is_xpathmode(This->node->doc)) {