yet_another_json_isolate library
JSON encoding and decoding that never blocks the calling isolate for long: small payloads are decoded inline, large payloads on short lived isolates that hand their result back without copying, and a large list is encoded on the calling isolate in slices that yield to the event loop.
On web there are no isolates, so every payload is decoded inline on the calling thread.
Classes
- AsyncJsonCodec
- Encodes and decodes JSON asynchronously, so that a large payload does not block the calling isolate for long.
- YAJsonIsolate
- Encodes and decodes JSON without blocking the calling isolate for long.