Performance problem with highlighting via markText


#1

We use markText to interactively highlight multiple lines of SQL code. See demo here – https://app.sqldep.com/queryscope/demo/

You can notice a small delay when you move the cursor over multiple columns. With larger chunk of SQL queries the delay arises to multiple seconds and our app becomes barely usable.

Is there a way how we can improve performance? We are fine with making a donation if the Code Mirror performance is improved significantly.

Thanks,
Martin


#2

Are you wrapping your calls to markText in an operation yet?


#3

Thanks! We have noticed the initial performance boost. We are testing this further.


#4

Ah-ha! Thanks Marijn :slight_smile: