Performance problem with highlighting via markText

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

1 Like

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

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

Ah-ha! Thanks Marijn :slight_smile: