Results 515 comments of L3MON4D3

> I'am quite new in the vim and lua world, so sorry for being a 'noob' . No worries about that, it's pretty rough to get up to speed Normally,...

TY for moving that discussion here :+1: > or just remove this preallocation and rely on it being created when the snippets get inserted Yeah, that's cleaner, go ahead :)...

Oh, one problem maybe: in `M.get_snippets` we need to return a list of snippets for some filetype. I'm not sure if we want to return tables with (maybe) unexpected metatables,...

> Small note on `rawset` and `tab[i]` regarding performance: (but doesn't concern us) Just read on a lua discord (tbh, didn't check it on my own) > > > PUC...

Yeah, we'll have to careful around those tables from now on, eg. should have some tests that cover a good portion of that code. I think we don't have any...

> Sorry I have to ask, but I also cannot find a real documentation on the jit.p module (would be interesting tough to understand the passed arguments (only found some...

Well, I think in this case it's alright to just look at the total time elapsed, it's just nice to have the flamegraphs ready, then one can directly see what...

> I think I'll play with the snipmate loader to return a list of the nodes to be added instead of directly adding them, so I can add them manually...

(Not sure how you're approaching this, easiest might be appending them to some global table instead of `add_snippets`)

Ahh, `ss` contains the arg-tuples to `add_snippets`? Cool :+1: > (should not be catched by caching, as it should invalidate the snippets on each iteration and insert them once again,...