zetzit / zz

πŸΊπŸ™ ZetZ a zymbolic verifier and tranzpiler to bare metal C
MIT License
1.6k stars 52 forks source link

WIP json rewrite #127

Closed aep closed 3 years ago

aep commented 3 years ago

this changes the json parser from a callback mess to a simple iterator.

it is also also extremly faster

the downside is that the entire json text needs to be available before parsing. chunking is no longer supported. There wasn't really a use case for it , as you end up allocating the same amount of memory anyway for copies anyway.