This task is an umbrella for several performance improvements to the new parser.
TODO: Tweak caching: try to avoid stampedes, increase TTL; also, try to cache all the ASTs at the same time and maybe use WANCache.
This task is an umbrella for several performance improvements to the new parser.
TODO: Tweak caching: try to avoid stampedes, increase TTL; also, try to cache all the ASTs at the same time and maybe use WANCache.
Change 540383 had a related patch set uploaded (by Daimona Eaytoy; owner: Daimona Eaytoy):
[mediawiki/extensions/AbuseFilter@master] Log deprecated vars in the cached phase in the new parser
Change 540145 had a related patch set uploaded (by Daimona Eaytoy; owner: Daimona Eaytoy):
[mediawiki/extensions/AbuseFilter@master] Replace array_map with foreach
Change 540385 had a related patch set uploaded (by Daimona Eaytoy; owner: Daimona Eaytoy):
[mediawiki/extensions/AbuseFilter@master] Remove AFPData::dup
Change 540145 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@master] Replace array_map with foreach
Change 540385 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@master] Remove AFPData::dup
XHGui is currently broken (T240066), but I think that the best we can do is cache all ASTs together. For a wiki as big as enwiki, this would mean one hit to memcached for every request, instead of 197. A possible implementation:
For some of the steps above, we need new methods in the Parser class. The main problem is the presence of the old parser, which could force us to add some hacks.
Change 540383 merged by jenkins-bot:
[mediawiki/extensions/AbuseFilter@master] Log deprecated vars in the cached phase in the new parser
I've moved this to a new task for now since this wil otherwise stay open forever, I think! Thanks for all the work, this has been awesome.