Issue by peterflynn
Saturday Mar 02, 2013 at 22:51 GMT
Originally opened as adobe/brackets#3022
- Open Editor.js and launch Find
- Type "e"
- Press Esc or Enter
Result: Several second pause
In this code path, clearHighlights() is getting called without being wrapped in an operation, so CodeMirror re-renders once per highlight. (When you type a 2nd letter, clearHighlights() is called inside an operation, so it's very fast).
Saturday Mar 02, 2013 at 22:51 GMT
Originally opened as adobe/brackets#3022
Result: Several second pause
In this code path, clearHighlights() is getting called without being wrapped in an operation, so CodeMirror re-renders once per highlight. (When you type a 2nd letter, clearHighlights() is called inside an operation, so it's very fast).