t9md / atom-vim-mode-plus

vim-mode improved
https://atom.io/packages/vim-mode-plus
MIT License
1.4k stars 111 forks source link

bracket matching is slower than Atom's builtin version #1069

Open trusktr opened 6 years ago

trusktr commented 6 years ago

Check list

You have to check all before open issue.

debug info ```json { "atom": "1.27.0", "platform": "linux", "release": "4.13.0-41-generic", "vmpVersion": "1.32.0", "vmpConfig": { "blackholeRegisteredOperators": [], "startInInsertModeScopes": [], "charactersToAddSpaceOnSurround": [], "highlightSearchExcludeScopes": [], "flashOnOperateBlacklist": [] } } ```

Want % bracket matching to be fast. It is slow compared to Atom's ctrl-m in big files. It takes a whole second, but Atom's is instant.

Maybe % should be just a small tweak to Atom's builtin, if possible?

trusktr commented 6 years ago

@t9md Have you noticed this? In large files, the % feature is unbearably slow, while Atom's ctrl+m feature is perceivably instantaneous.

keevan commented 5 years ago

@t9md Have you noticed this? In large files, the % feature is unbearably slow, while Atom's ctrl+m feature is perceivably instantaneous.

@trusktr Depending on what you are coding, you might not need to use VMP's bracket matching feature. I however use it because I find myself jumping between brackets within a string, which Atom does not seem to support out of the box using ctrl+m

t9md commented 5 years ago

@trusktr Yes, I've noticed. You are right. And I know why vmp is much slower than brackets-matcher. Maybe I can improve speed, but I assure vmp would still slower than bracket-matcher's one. I agree vmp's % is unacceptably slow in some codebase. I will keep open this issue, but nothing planned to tackle this issue for now.