News for hackers. Stuff that matters.
Re:CJSON – Ultralightweight JSON parser in ANSI C by mvladic on Sunday February 13, 2022 @03:51AM (#30320341)
The size of cJSON structure that holds single JSON value is 80 bytes on 64-bit or 32 bytes on 32-bit architecture. Why the author doesn't use union here? Or NAN boxing trick like many JS interpreter do. In case of NAN boxing, single JSON value uses only 8 bytes on both 64-bit and 32-bit architecture.

There are no comments on this comment yet.