facelessuser/BracketHighlighter — comment on commit da021b6ccca1b50c0008643e6d987bb73270be84
File:  line 0
By facelessuser:

I definitely agree. But there are odd scenarios where ST2 runs plugins slow because it is also doing other things, particularly I have noticed this during "on_load" on first start up and on "on_activated" when you have been out of ST2 for a while. Something that would usually take no time to complete can exceed the time limit during these two scenarios.

There was heavy optimization on this before hand when I originally forked it (not to say it is impossible to do more). The ability to cut down search distance is also in the settings file to keep things snappy. If someone really wants to find two brackets very far away, it is going to take a bit though, so it must happen outside of these events. Also, a lot of multi-select regions (which I do not restrict) will linearly add to the time for each added region. I would be more concerned about the "alert" if using the plugin was also impacting performance, but I have been quick to reduce bothersome code when issues have been brought to my attention.

With that said, I am fully open to input on ways to optimize further and welcome pull requests :). If you find the plugin is impacting performance, please do let me know.

By the way, big fan of your sidebar plugin.