]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
profiling
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>
Sun, 23 Feb 2014 22:40:12 +0000 (18:40 -0400)
committeradmin <admin@branchable.com>
Sun, 23 Feb 2014 22:40:12 +0000 (18:40 -0400)
doc/bugs/editing_gitbranch_template_is_really_slow.mdwn

index 028a5b2fa57320c4cc25156b9700336743c8e3e5..33b8f25757a13a0b81558cb1d0ab4b596e8e24b4 100644 (file)
@@ -14,4 +14,14 @@ Easy to reproduce offline:
 * `touch templates/gitbranch.mdwn`
 * `/usr/bin/perl -Iblib/lib ikiwiki.in -setup docwiki.setup -refresh`
 
+NYTProf says:
+
+    # spent 279s (237+41.8) within IkiWiki::bestlink which was called 13988949 times, avg 20µs/call:
+    # 13150827 times (222s+37.2s) by IkiWiki::PageSpec::match_link at line 2692, avg 20µs/call
+    # 829606 times (14.9s+4.51s) by IkiWiki::PageSpec::match_link at line 2687, avg 23µs/call
+    ...
+    sub bestlink ($$) {
+
+which is about half the execution time (458s on my laptop).
+
 --[[smcv]]