facelessuser / BracketHighlighter

Bracket and tag highlighter for Sublime Text
https://facelessuser.github.io/BracketHighlighter/
1.75k stars 245 forks source link

Improve performance by merging View.substr calls #623

Closed jfcherng closed 1 year ago

jfcherng commented 1 year ago

The original implementation may call View.substr "the length of the bracket content region" times. Now it's just called once.

In my daily setup which uses

    "search_threshold": 20000, // 5000 by default
    "content_highlight_bar": true,
    "align_content_highlight_bar": true,

This may reduce numbers of View.substr calls from 10k to just 1.

facelessuser commented 1 year ago

Looks good. I'll have to verify functionality, but I'm not expecting any issues.

facelessuser commented 1 year ago

@gir-bot lgtm