Ultisnips Sluggish when Nesting Snippets

Bug #859402 reported by David Karapetyan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UltiSnips
Fix Released
Medium
Unassigned

Bug Description

2.7.1 (r271:86832, Jun 16 2011, 16:59:05)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]

I'm coding in MacVim Snapshot 61

Plugins currently installed:

bufexplorer matchit supertab vim-latex
color-sample-pack matlab syntastic vim-pathogen
command-t nerd-commenter taglist.vim vim-surround
lilypond nerd-tree ultisnips

The snippet giving me problems (among many) is

snippet fk "frac" w
\frac{$1}{$2}$3
endsnippet

If I nest this multiple times (say, by typing (((fk <tab>)fk <tab>)fk <tab>)...
vim freezes up when I begin to type random letters (say, jqlekjr, etc). I have done a test run of ultisnips with no other plugins present in my .vim folder; the same problem occurs.

Related branches

Revision history for this message
SirVer (sirver) wrote :

I can reproduce this when nesting gets deeper than 6 on my system. I am not sure how to track this down though because profiling inside of vim never worked properly for me. If anyone has any idea, I am all ears.

Changed in ultisnips:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
SirVer (sirver) wrote :

Found a way to profile properly. I pushed a fix in r326 that is (likely) only a fix if the recursive snippets mostly contain tabstops (and not many other objects like mirrors/transformations/python interpolation). I can now nest 10 layers deep without noticing a delay while typing. Could you please check if the problem is solved for you as well?

Changed in ultisnips:
status: Confirmed → Fix Committed
Revision history for this message
SirVer (sirver) wrote :

Release in 1.6.

Changed in ultisnips:
milestone: none → 1.6
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.