Community
Participate
Working Groups
I20110411, FireFox 4 - Open the editor on a JS file of about 200 lines - Select All, then hit Tab to indent selection -> It takes about 5 seconds. On a 500 line file it takes about 10 seconds. Performing "Undo" afterwards takes a similar amount of time. This seems incredibly slow compared to most other editor operations.
I noticed this as well on all browsers. The problem happens because the key bindings added is editorFeatures.js alters the text line by line causing the editor to update the DOM once per line. Fixed by make all modifications in memory and altering the editor contents only once. http://git.eclipse.org/c/e4/org.eclipse.orion.client.git/commit/?id=fd464d2c7675f18a82ec69f7771fb89c5899e6f5