[gtk-doc] mkhtml2: add some experiemnts on loading speed
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkhtml2: add some experiemnts on loading speed
- Date: Fri, 27 Apr 2018 07:30:08 +0000 (UTC)
commit 2a3238a3ab495ea5899fc696f96b76f480b87ac7
Author: Stefan Sauer <ensonic users sf net>
Date: Fri Apr 27 09:01:51 2018 +0200
mkhtml2: add some experiemnts on loading speed
It turns out that just loading the xml doc is dominating, especially for
larger docs.
gtkdoc/mkhtml2.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py
index 802b3a5..5a49937 100644
--- a/gtkdoc/mkhtml2.py
+++ b/gtkdoc/mkhtml2.py
@@ -1566,6 +1566,9 @@ def main(module, index_file, out_dir, uninstalled):
# 1) load the docuemnt
_t = timer()
+ # does not seem to be faster
+ # parser = etree.XMLParser(collect_ids=False)
+ # tree = etree.parse(index_file, parser)
tree = etree.parse(index_file)
tree.xinclude()
logging.warning("1: %7.3lf: load doc", timer() - _t)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]