Page MenuHomePhabricator

Use Maps and Sets in WikiConfig
Closed, DeclinedPublic

Description

mediawiki.WikiConfig.js uses {} to implements maps and sets. We should go in and replace those with es6 maps and sets like in the most of the codebase.


Version: unspecified
Severity: enhancement

Details

Reference
bz63370

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:04 AM
bzimport set Reference to bz63370.

In the interest of performance we should perhaps only use Map / Set where the keys are actually user-provided. The es6 shim uses objects under the hood right now, and is slower than native objects.

Change 151068 had a related patch set uploaded by Arlolra:
Use a map for the interwikiMap

https://gerrit.wikimedia.org/r/151068

Change 151068 merged by jenkins-bot:
Use a map for the interwikiMap

https://gerrit.wikimedia.org/r/151068

All patches mentioned in this report were merged or abandoned - is there more work left to do here (if yes: please reset the bug report status to NEW or ASSIGNED), or can you close this ticket as RESOLVED FIXED?

There's more work to do ... at least audit as suggested in comment 1.

marcoil added a project: Technical-Debt.
marcoil set Security to None.

Change 396096 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] T65370: Use a map for namespaceIds

https://gerrit.wikimedia.org/r/396096

Change 396096 merged by jenkins-bot:
[mediawiki/services/parsoid@master] T65370: Use a map for namespaceIds

https://gerrit.wikimedia.org/r/396096

Parsoid/JS is not in use any more.