mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-07 14:29:33 +01:00
3ed03f9c8f
The jsmn parser is a beautiful piece of code. In particular, you can parse part of a string, then continue where you left off. We don't take advantage of this, however, meaning for large JSON objects we parse them multiple times before finally having enough to complete. Expose the parser state and tokens through the API, so the caller can pass them in repeatedly. For the moment, every caller is allocates each time (except the unit tests). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> |
||
---|---|---|
.. | ||
Makefile | ||
onion-test-v0.json | ||
run-amount.c | ||
run-bigsize.c | ||
run-bolt11.c | ||
run-cryptomsg.c | ||
run-derive_basepoints.c | ||
run-features.c | ||
run-funding_tx.c | ||
run-gossip_rcvd_filter.c | ||
run-ip_port_parsing.c | ||
run-json_remove.c | ||
run-json.c | ||
run-key_derive.c | ||
run-lock.c | ||
run-param.c | ||
run-psbt_diff.c | ||
run-softref.c | ||
run-sphinx.c |