[PATCH 0/3] jshn: load envs only on formatting
Sergey Ponomarev
stokito at gmail.com
Mon Feb 22 17:47:52 EST 2021
The set of patches simplifies jshn code and improves it's performance.
They are small and easy to review.
I found that -i and -n options for pretty print aren't used in the jshn.sh script.
To minimize space we can make these options enabled on build config or even just remove them.
Other platforms haven't any such tools to work with JSON from shell so I decided to try to port jshn to them.
So I created a fork https://github.com/stokito/jshn-jsonc that doesn't have a dependency to avl.
Instead it uses linkmap from json-c which may work slower resulted binary size is smaller.
The goal is to port jshn to as many platforms as possible. Currently I just created Ubuntu PPA package.
I'll appretiate any comments and thought on this.
Sergey Ponomarev (3):
jshn.c: remove old unsupported json lib
jshn.c: load envs only when -w
jshn.c: write_key_string(): extract var
jshn.c | 99 +++++++++++++++++++++++++++++++---------------------------
1 file changed, 53 insertions(+), 46 deletions(-)
--
2.27.0
More information about the openwrt-devel
mailing list