RCFilters: Reduce startup overhead from 'config.json' computation
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 13 Jun 2019 20:23:28 +0000 (21:23 +0100)
committerRoan Kattouw <roan.kattouw@gmail.com>
Sat, 29 Jun 2019 04:49:49 +0000 (21:49 -0700)
commit9c9cfa2ec3d7a2a01f43fe670111735d12a38ab8
tree7c8b7de02626833562895c7938fa46d0f06a295d
parent7bfec54fa5b74f93699509c1f1663806c3dac497
RCFilters: Reduce startup overhead from 'config.json' computation

Follows-up 9ba1d8f526e1. Use the new 'versionCallback' to only perform
the minimum amount of work needed to detect changes, without fully
transforming the data for delivery.

Factor out message parsing into a separate step in the tag list code,
and use the messages' raw contents for the versionCallback.

Stop using WANCache for the tag list, since it's now cached by
ResourceLoader, and only regenerated when needed.

Also refactor the ChangeTags functions around tag description messages a
bit, so that we can more easily get the message keys that are going to
be used.

Bug: T201574
Bug: T223260
Change-Id: I02082aeb289ce4156170b14b8840f6d92cbadb57
includes/changetags/ChangeTags.php
includes/specialpage/ChangesListSpecialPage.php
resources/Resources.php