Post

new smol-toml release who dis - Full Temporal support - 2x performance improvements - New options for safe handling of `__proto__` - Lots of correctness fixes and additions github.com/squirrelchat...

github.comRelease v1.9.0 Β· squirrelchat/smol-tomlHuge update!!! This is most likely the largest update the library received since its release, with lots of new features and improvements. Performance improvements Significant parts of the internal ...

1 repost5 likes

The internals are quite a lot better in terms of robustness and less clunky to work with. I've commented them a lot, which was much needed too. There's plenty of things that deserves to be further refactored, but it's really paving the way for some of the very-long-term ideas for the lib. Meow!!!!

I’m surprised to see the addition of a null prototype improves performance. I had the same idea earlier for a YAML parser, but it was pointed out to me this is actually less performant in many cases.

At first it surprised me too, but I figured it most likely allowed V8 to skip walking up the prototype chain, which would match the significant drop in instructions dispatched between plain object vs null proto (1.35G instructions down to 750M instructions for my 5MB benchmark)