marijnh/CodeMirror2 — Issue #343: measureLine() is slow in IE8
Author: pmweb9873
Created: 2012-01-31 19:33:49+00:00
State: open

Overall the measureLine function is incredibly slow in IE8. I haven't tested other IE versions but IE8 this function is taking lots of time. As the size of the page gets bigger and bigger this function really slows down. Each time the cursor is moved or a letter is typed this function gets called and can take 500 milliseconds or more to return a result. I've run the IE8 profiler in the "Developer Tools" of IE8 to see that this is what was causing the slowdown of my page. I can't seem to narrow it down any further.

I notice that if the page is small (not many HTML elements) that I can type quickly but once lots of HTML elements are added then it really slows down.

I am running version 2.21 of CodeMirror.