diff options
author | Jackmcbarn <jackmcbarn@gmail.com> | 2014-05-28 20:54:55 -0400 |
---|---|---|
committer | GWicke <gwicke@wikimedia.org> | 2014-05-30 01:38:15 +0000 |
commit | 2094e578b4ff0fdf6df351c44727b4e23846ac85 (patch) | |
tree | 36bfcb0946c4257f258f459b7ad4eb86e5db300b /resources/lib/oojs-ui/oojs-ui.js | |
parent | c888520e9921225b92af101f21ae3462530e3e35 (diff) | |
download | mediawikicore-2094e578b4ff0fdf6df351c44727b4e23846ac85.tar.gz mediawikicore-2094e578b4ff0fdf6df351c44727b4e23846ac85.zip |
Restrict empty-frame cache entries to their parent
Remove the parser's global $mTplExpandCache, and replace it with an
alternative that is separated by parent frame. This allows the integrity
of the empty-frame expansion cache to be maintained while also allowing
parent frame access.
A page with 3 copies of
http://ja.wikipedia.org/wiki/%E4%B8%AD%E5%A4%AE%E7%B7%9A_(%E9%9F%93%E5%9B%BD)
has the following statistics: Without this change, there are 4625 cache hits
on this page, and a sample of 3 parses took 16.6, 16.9, and 16.8 seconds.
With this change, there are 2588 cache hits, and a sample of 3 parses took
16.7, 16.7, and 17.0 seconds.
Change-Id: I621e9075e0f136ac188a4d2f53418b7cc957408d
Diffstat (limited to 'resources/lib/oojs-ui/oojs-ui.js')
0 files changed, 0 insertions, 0 deletions