You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
These suggested improvement were split off of #4885.
Current, line is scanned every time mouse moves more than 1 char. Then, delay 350ms before displaying popover. Seems like we could save some (a lot of?) processing by delaying first, then if mouse is still at same position, scan & display. Note that @peterflynn thinks there may have been a good reason it was done this way, so there may be some gotchas.
We check char position to make sure it's in code to popover, but we don't bail out of the loop after we get past current position.
Do not scan lines that are over a certain length. CodeMirror does this for code coloring and matching braces due to bad performance of minified files. I think a length of 1024 is a reasonable place to start.
These suggested improvement were split off of #4885.