harmony-erlpack
v0.0.1
Published
An erlpack implementation in pure TS
Downloads
5,958
Readme
Harmony Erlpack
This is an implementation of erlpack for use within harmony, it is already faster than @yukikaze-bot/erlpack in tests of encoding large JSON objects, (many READY payloads were tested) in both encoding and decoding performance. This is not production ready yet, but it's pretty decent so far. Though I still want to make this faster if I can. This is also optimized for harmonies use cases, so it caches short strings for later re-use so it doesn't have to re-encode the utf16 to utf8 again and again.
Goals
The goals are in this order:
- Discord Erlpack support
- Performance
- General Erlpack support
Which means if there's a feature that Erlpack has that discord does not use that would cost performance, we will not implement that, though I doubt that'll come into play here.
