mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-15 10:19:27 +00:00
a43984fc67
Optimizations for the code introduced in Ic403e0a: * Skip this entirely when something is selected (as discussed in Ic403e0a). * Use a combination of existing methods. I benchmarked these again. This approach is "significantly" slower compared to the custom code from before. However, "significantly" here means something like 1 nanosecond vs. 4 nanoseconds. Both is effectively nothing. * Use the same approach in another place. This one is triggered every time a change is made, e.g. a character typed. I benchmarked this as well. The new code is about 500x faster (yes, seriously). Bug: T269094 Change-Id: I00fe595a89be7a257e27ed28d38568c81483338b |
||
---|---|---|
.. | ||
.eslintrc.json | ||
ve.ui.CodeMirror.init.js | ||
ve.ui.CodeMirror.init.less | ||
ve.ui.CodeMirrorAction.js | ||
ve.ui.CodeMirrorTool.js |