mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
fd669a4d16
This sorting algorithm was introduced via Ic6bc348 (T274544). Note there is no index parameter in the .onReplacePart() handler at this point. When a part was moved, it was removed and simply appended to the end. The additional sorting was needed to move it back to the correct position. This changed a few days later via Iafe29f1. There is now an index parameter. The .onReplacePart() handler does the same as before, but puts the part at the correct position right away. The additional sorting is pointless since then. The removed code alone is responsible for 1/3 of the total blocking time when the template dialog opens. Bug: T296335 Change-Id: I6c3fa70b532d34cd29d59c3b48ab81ebf608d548 |
||
---|---|---|
.. | ||
ve-mw | ||
ve-mw-collab |