Skip to content
Discussion options

You must be logged in to vote

Hi!

I think of these two, the dynamic approach is a tiny bit better because we essentially deepcopy the snippet on expand, and the smaller it is, the better (dynamic version does not contain the large table).

I can't reproduce the overflow, but it seems like every expansion adds about 10MiB on my machine.

I can think of one optimisation: don't use a choiceNode, but an external-update-dynamicNode (which isn't really a node, but a trick to update a dynamicNode by pressing some keys/means other than adding text to the buffer):

-- these contain only the strings, like `return {"master", "master-local"}`
local versions_raw = loadfile("versions_raw.lua")()
local resources_raw = loadfile("resourc…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@L3MON4D3
Comment options

@KevinNitroG
Comment options

@L3MON4D3
Comment options

Answer selected by KevinNitroG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants