Valloric / MatchTagAlways

A Vim plugin that always highlights the enclosing html/xml tags
http://valloric.github.com/MatchTagAlways/
GNU General Public License v3.0
541 stars 24 forks source link

Slowdown inside matchings #18

Closed humrochagf closed 9 years ago

humrochagf commented 9 years ago

When i'm inside some reachable matching tag (e.g.: the ones who the opening and closing tags are on the screen), there's a noticeable slowdown on the cursor speed. Probably because of constant pattern checking while moving inside of those.

Looking superficially, one possible solution would be triggering the matching only when entering or leaving a tag level, but i don't know how complex it can be.

I come back with more ideas after looking better the code.

Valloric commented 9 years ago

I haven't personally had any perf issues, and this is the first time I've heard of someone complaining about this. You possibly have another Vim plugin (or something else in your vimrc) that's exacerbating the issue in some way. I'd recommend you try to repro this with just MTA loaded.

humrochagf commented 9 years ago

I've checked the other plugins and it seems to slow down when in conjuntion with Vim-Jinja2-Syntax or django.vim plugins.

This happens only on the .html template files.

Valloric commented 9 years ago

My guess would be that those two plugins have very slow syntax highlighting; either way, if the problem is only apparent with those plugins installed, it means it's unlikely to be an MTA issue.