|
|
|
|
|
by bri3d
644 days ago
|
|
Interesting way to approach this (dictionary based compression over JSON and Erlang ETF) vs. moving to a schema-based system like Cap'n Proto or Protobufs where the repeated keys and enumeration values would be encoded in the schema explicitly. Also would be interested in benchmarks between Zstandard vs. LZ4 for this use case - for a very different use case (streaming overlay/HUD data for drones), I ended up using LZ4 with dictionaries produced by the Zstd dictionary tool. LZ4 produced similar compression at substantially higher speed, at least on the old ARM-with-NEON processor I was targeting. I guess it's not totally wild but it's a bit surprising that common bootstrapping responses (READY) were 2+MB, as well. |
|
Protos or a custom wire protocol would be far better suited to the task.