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


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to