BibApp/BibApp — Issue #93: Investigate caching
Author: hading
Created: 2012-03-01 19:57:35+00:00
State: open

While looking at some unrelated issues it became clear that there are some very simple uses of caching that can have a pretty big impact. The example I can across is rendering the shared/sherpa_icon partial on a publication index page. Each rendering (in development, on my development box) takes about 2.5 - 3.0 ms and there is a garbage collection of > 200ms for each 15-20 or so renderings. On a page with 100+ titles (e.g. J for Journal of) this adds up. Early experiments show that
proper caching can bring this down tremendously - rendering from the cache is around 0.1 ms and I think that garbage collections will be reduced as well. I may implement just for this shared partial for now and then see if there is a logical place to go from there. In some respects I think Bibapp does things that aren't particularly friendly to caching, but I'm sure there are still other opportunities available.