Commit Graph
2 Commits
Author SHA1 Message Date
Max Lv 5f47a65c51 Parse the config file on arenas
read_jconf now reads the file and builds the JSON tree in a scratch arena
that is released before it returns, and copies the parsed strings into one
process-lifetime arena instead of a malloc per string. parse_addr and the
config parser share one address splitter.

Port test_jconf to C++ and cover every field copied out of the parse tree,
a re-read, and the densest file the size limit accepts.
2026-10-15 01:33:51 +08:00
Max Lv fad7c44d43 Rename test_jconf.c to test_jconf_cpp.cpp 2026-10-15 01:12:46 +08:00