在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:WebReflection/JSONH开源软件地址:https://github.com/WebReflection/JSONH开源编程语言:JavaScript 56.8%开源软件介绍:JSONH - JSON Homogeneous Collections CompressorWhat is JSONHJSONH is one of the most performant, yet safe, cross programming language, way to pack and unpack generic homogenous collections.
Based on native or shimmed JSON implementation, JSONH is nothing different than a procedure performed right before It is demonstrated that overall performances of JSONH are up to 3 times faster in compression and 2 times in parsing thanks to smaller and simplified nature of the collection/string. It is also demonstrated that resulting bandwidth size will be incrementally smaller than equivalent JSON operation reaching, in certain cases, down to 30% of original size and without gzip/deflate compression in place. JSONH is the latest version of json.hpack project and based on JSONDB concept. New in version 0.0.2 ( JS only )
What is an Homogenous CollectionUsually a database result set, stored as list of objects where all of them contains the same amount of keys with identical name. This is a basic homogeneous collection example: [
{"a":"A","b":"B"},
{"a":"C","b":"D"},
{"a":"E","b":"F"}
] We all have exchange over the network one or more homogenous collections at least once.
JSONH is able to pack the example into JSONH is suitable for
If the generic object/data contains one or more homogenous collections, JSONH is suitable for these cases too via JSONH APIEvery implementation is suitable for the programming language code style and every method supports original JSON signature.
As example the JavaScript version is a global The python version is a module similar to
The php 5 version is a static class plus some function in order to let developers decide for their favorite stile.
Extra arguments accepted by
TODO
JavaScript And Native JSON Escape ProblemsAs @garethheyes pointed out by in this post, native
This will ensure proper escape for those characters plus performances will be still better thanks to reduced string output size (compared with the equivalent operation performed by |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论