3 ms·
You don’t need webassembly. We already have typed arrays to represent binary data and do fast slices. That’s essentially what flatbuffers is. Slightly larger t
by nojvek 7y ago
You don’t need webassembly. We already have typed arrays to represent binary data and do fast slices.
That’s essentially what flatbuffers is. Slightly larger than protobuf but insanely fast to parse since it doesn’t need to scan the whole file. It’s both memory and CPU efficient. Netflix uses it in their app because TVs can be low powered devices.
That’s why Netflix feels so much lighter than amazon, hbo or Hulu. They all freeze my Vizio TV but Netflix is smooth.
https://github.com/google/flatbuffers https://github.com/google/flatbuffers