Re: [xml] performance of parsing docbook with xincludes

On 05/15/2018 12:42 PM, Nick Wellnhofer wrote:
On 14/05/2018 21:48, Stefan Sauer wrote:
This part looks suspicious:

                |          xmlFreeDoc
                |          |
                |           --22.42%--xmlFreeDtd

Can I tell it to not load dtds in the first place? Is it loading the
dtd for each an every xinclude?

Good catch. It seems that the XInclude engine always parses included

If you're not using XML catalogs, this will probably cause the DTD to
be loaded over the network multiple times which could explain the

Can you try to change the line to

    xmlCtxtUseOptions(pctxt, ctxt->parseFlags);

and see if it helps?


It does not help. I'll experiment further. Thanks for the recomendations.


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