From 86b62d71abf3816166c820b49674504c8dbdbbac Mon Sep 17 00:00:00 2001 From: Kenneth Lin Date: Mon, 12 Feb 2018 21:16:18 +0800 Subject: [PATCH] Can we use JIT snippet loading? 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. --- yasnippet-snippets.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yasnippet-snippets.el b/yasnippet-snippets.el index a9e24aee1..1fb68a282 100644 --- a/yasnippet-snippets.el +++ b/yasnippet-snippets.el @@ -45,7 +45,7 @@ ;;;###autoload (defun yasnippet-snippets-initialize () (add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t) - (yas-load-directory yasnippet-snippets-dir)) + (yas-load-directory yasnippet-snippets-dir t)) ;;;###autoload (eval-after-load 'yasnippet