Replies: 3 comments 3 replies
-
Interesting! Any downsides to doing that? Do you have some numbers/flamegraph? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Potential downsides:
For my measurements, loading goes from btw 0.47 and 0.50 to 0.30 The 0.3 is including the step of re-enabling the GC |
Beta Was this translation helpful? Give feedback.
1 reply
-
I was trying to profile it, but unfortunately, I could not make it work, the luajit included in nvim for nixos does not include "jit.profile". Can you do it? local prof = require'plenary.profile'
prof.start("/tmp/no_gc_profile.log")
-- collectgarbage "stop"
require("luasnip/loaders/from_vscode").load()
-- collectgarbage "restart"
prof.stop() local prof = require'plenary.profile'
prof.start("/tmp/gc_profile.log")
collectgarbage "stop"
require("luasnip/loaders/from_vscode").load()
collectgarbage "restart"
prof.stop() |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey @L3MON4D3 I was playing with some optimizations and noticed that disabling the garbage collection while loading vscode snippets (and enabling it after) reduces the time of loading noticeably. The change is more noticeable when using the synchronous
load
.Beta Was this translation helpful? Give feedback.
All reactions