Skip to content

Conversation

@linkenneth
Copy link
Contributor

I found that yasnippet now supports JIT snippet loading. Can we make this the default setting when we initialize snippets? From some very basic benchmarking this reduces my load time of yasnippet-snippet autoloads from ~2200 ms to ~400 ms. Further compiling the snippets pushes this down to ~360 ms.

I found that yasnippet now supports JIT snippet loading. Can we make this the default setting when we initialize snippets? From some very basic benchmarking this reduces my load time of yasnippet-snippet autoloads from ~2200 ms to ~400 ms. Further compiling the snippets pushes this down to ~360 ms.
@AndreaCrotti
Copy link
Owner

Ah yes absolutely, I didn't know about this option.
But I just wonder if I need to do something to support older versions of yasnippet?
Probably not and I guess it has been available for a while now, so I think we can just go with it, any thoughts @linkenneth @npostavs ?

@npostavs
Copy link
Contributor

Jit-loading has been around for a while. joaotavora/yasnippet@922304f reversed the sense of the parameter, but that was before 0.8.0 (which you're already requiring as a minimum) so there's no problem from a versioning perspective.

@AndreaCrotti
Copy link
Owner

Ah that's good to hear, no reason not to merge it for me then, thank you both

@AndreaCrotti AndreaCrotti merged commit 2373036 into AndreaCrotti:master Feb 22, 2018
@linkenneth
Copy link
Contributor Author

Thanks! 🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants