No description
Find a file
Antonis Geralis 02e2b1a590
Minor edits (#14)
* minor changes

* minor
2023-01-01 10:07:36 +01:00
bench new implementation based on varints 2018-05-20 00:01:04 +02:00
packedjson Minor edits (#14) 2023-01-01 10:07:36 +01:00
.gitignore Initial commit 2018-05-18 00:57:35 +02:00
LICENSE Initial commit 2018-05-18 00:57:35 +02:00
packedjson.nim Minor edits (#14) 2023-01-01 10:07:36 +01:00
packedjson.nimble 0.2.2 2020-12-05 15:10:06 +01:00
README.md Update README.md 2018-06-04 21:45:09 +02:00

packedjson

packedjson is an alternative Nim implementation for JSON. The JSON is essentially kept as a single string in order to save memory over a more traditional tree representation.

The API is mostly compatible with the stdlib's json.nim module, some features have been cut though.

To compile the benchmark, run these commands:

nim c -r bench\generator

nim c -r -d:release bench\benchmark.nim
nim c -r -d:release -d:useStdlib benchmark.nim

On my machine, I got these results:

packed json:  used Mem: 94.06MiB time: 2.622s
stdlib json:  used Mem: 1.277GiB time: 3.759s

packedjson is now being used in production and seems to be reasonably stable.