Switch to a C based JSON parser #193
Labels
c api
This has to do with the C API (_view)
complex
This should only be looked at by someone who knows what they're doing
improvement
Improvement to an existing feature
Description:
As of now, we use uJSON for JSON parsing. Unfortunately, they've basically marked it as security-only, which isn't a great look for view.py. The obvious, drop-in replacement for now would be ORJson, but that might be very bad in the extreme. Namely, this would force us to set our memory leak limit very high in our unit testing suite, due to an overallocation issue on their end.
So, what's the solution? I'm thinking that cJSON is probably our best bet, or if I hate myself and want to cross-compile view.py with C++, then RapidJson. This will unfortunately require a lot of changes to the parser implementation.
It might be worth trying to migrate all our current and future parsers to C, depending on what libraries exist.
The text was updated successfully, but these errors were encountered: