diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-03-21 06:36:07 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-03-21 06:36:07 -0400 |
commit | bf7360347ea3f7a24345004a6c2143d15d3d2e92 (patch) | |
tree | 499ff6c0d27a59ea1ecf2e3914726e04fc4c2afd /doc/tips/inside_dot_ikiwiki.mdwn | |
parent | f40fec811d49e3ae14f6042ef8c304979a486df2 (diff) |
Precompile pagespecs, about 10% overall speedup
About 12% of ikiwiki runtime was spent in pagespec_match. It was evaling
the same pagespec code over and over again. This changes pagespec_translate
to return memoized, precompiled functions that can be called to match against
a given pagespec.
This also allows getting rid of the weird variable scoping trick that had
to be in effect for pagespec_translate to be called -- the variables are
now just fed into the function it returns.
On my laptop, this drops build time for the docwiki from about 60 to 50
seconds.
Diffstat (limited to 'doc/tips/inside_dot_ikiwiki.mdwn')
0 files changed, 0 insertions, 0 deletions