Commit Graph

4 Commits

Author SHA1 Message Date
olemorud
b3821cf8bf Feature: Use arena-allocation for memory handling
Arena allocation make deallocation of nested structed MUCH faster, and
improves the spatial locality of allocations. It makes no sense to
deallocate only parts of a JSON structure so arenas are a good fit here.
2023-06-05 21:25:40 +02:00
olemorud
9a88d1cbdc Refactor
Move json_value and obj_t to same file
 - Rename json_obj.* -> json_value.*
 - Move `print_json_value(...)` to json_value.*

Move `err_ctx(...)` to util.*

parse.h now only exposes `parse_json_value(...)`
2023-04-24 23:44:45 +02:00
olemorud
f70be0f392 Fix json printing errors 2023-04-23 19:38:15 +02:00
olemorud
4ce1c34838 Initial commit 2023-04-22 18:43:36 +02:00