Permalink
Please sign in to comment.
Browse files
Various speedups and optimizations
The largest single performance increase comes from a sleazy hack in pages.py to make virtual directories use the newly-cached context.cache_page_children() when walking the real directory hierarchy. This change drastically speeds up all virtual directory based things in Wandering Thoughts. Other changes are smaller but include fiddling in storage.py and pages.py to basically eliminate pointless lstat() calls (these are a surprisingly hot path in many cases) and some code bumming.
- Loading branch information...
Showing
with
124 additions
and 38 deletions.
- +10 −9 htmlview.py
- +53 −18 pageranges.py
- +25 −2 pages.py
- +20 −8 storage.py
- +16 −1 utils.py
19
htmlview.py
71
pageranges.py
27
pages.py
28
storage.py
17
utils.py
0 comments on commit
edc074e