aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>2014-02-23 18:40:12 -0400
committeradmin <admin@branchable.com>2014-02-23 18:40:12 -0400
commite8b0bcc57ec07d523763bd588096ab3ac39003e9 (patch)
treef19ef4bc5560bf6e537957bb9ec019e717c627ff /doc/bugs
parentab4f499c8d903b3e66655b42202a29ece975112b (diff)
downloadikiwiki-e8b0bcc57ec07d523763bd588096ab3ac39003e9.tar
ikiwiki-e8b0bcc57ec07d523763bd588096ab3ac39003e9.tar.gz
profiling
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/editing_gitbranch_template_is_really_slow.mdwn10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/bugs/editing_gitbranch_template_is_really_slow.mdwn b/doc/bugs/editing_gitbranch_template_is_really_slow.mdwn
index 028a5b2fa..33b8f2575 100644
--- a/doc/bugs/editing_gitbranch_template_is_really_slow.mdwn
+++ b/doc/bugs/editing_gitbranch_template_is_really_slow.mdwn
@@ -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]]