https://bugzilla.wikimedia.org/show_bug.cgi?id=54522
Web browser: ---
Bug ID: 54522
Summary: Images: Image responses could be cached to avoid
identical API reqs (and also speed up parse)
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: token-stream transforms
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Take a look at: http://parsoid.wmflabs.org:8001/perfstats?orderby=time:parse
Take a look at the first entry there:
https://ja.wikipedia.org/w/index.php?title=%E6%9D%91%E6%AD%A3%E3%81%AE%E5%A6%96%E5%88%80&action=edit
On this page, check one of the transclusions and look at the expanded source on
it as follows: "node parse --prefix ja --dump tplsrc < /tmp/wt_snippet" and you
find this:
....
|[[ファイル:Go u.svg|20x20px]]
|[[ファイル:Go u.svg|20x20px]]
|[[ファイル:Go u.svg|20x20px]]
|[[ファイル:Go u.svg|20x20px]]
|[[ファイル:Go u.svg|20x20px]]
....
Now, Parsoid shoots off an API request for each image whereas this is
unnecessary after the first response. This can significantly speed up the parse
of this page.
The same is true for
https://pl.wikipedia.org/wiki/Podsumowanie_start%C3%B3w_zespo%C5%82u_Lotus_w_Formule_1
which has a lot of identical image flags.
Caching could help here.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l