Re: [xml] performance of parsing docbook with xincludes

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 docs with XML_PARSE_DTDLOAD:

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 slowdown.

Can you try to change the line to

    xmlCtxtUseOptions(pctxt, ctxt->parseFlags);

and see if it helps?


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