codemirror-minimap
codemirror-minimap copied to clipboard
Poor performance for drawLine
I adopted this extension, but then noticed that it causes substantial performance issues. I thought I'd drop a line here with what I noticed.
To reproduce: select some text, and hold down the arrow key so it selects more and more.
The updates take around 72ms.
Specifically, these two calls within the minimap extension:
measure
and drawLine
Specifically, drawLine
is not re-using DOM elements: