Skip to content

Commit 2373036

Browse files
linkennethAndreaCrotti
authored andcommitted
Can we use JIT snippet loading? (#252)
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.
1 parent 26b33ac commit 2373036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yasnippet-snippets.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
;;;###autoload
4646
(defun yasnippet-snippets-initialize ()
4747
(add-to-list 'yas-snippet-dirs 'yasnippet-snippets-dir t)
48-
(yas-load-directory yasnippet-snippets-dir))
48+
(yas-load-directory yasnippet-snippets-dir t))
4949

5050
;;;###autoload
5151
(eval-after-load 'yasnippet

0 commit comments

Comments
 (0)