fastjson

时间:2021-02-26 03:01:49
【文件属性】:
文件名称:fastjson
文件大小:7.29MB
文件格式:ZIP
更新时间:2021-02-26 03:01:49
Go fastjson:为Go优化的标准库JSON fastjson与标准库encoding/json具有相同的API。 Unmarshal和Decode函数的速度更快,但其他一切都与encoding/json相同 入门 $go get github.com/intel-go/fastjson ## Perfomance性能取决于json结构的内容,而不是解析到的结构。 如果.json有很多字符串或数字,则fastjson的速度明显快于encoding/json ##例子 import ( "github.com/intel-go/fastjson" "fmt" ) func main () { var jsonBlob = [] byte ( `[ {"Name": "Platypus", "Order": "Monotremata"}, {"Name": "Q
【文件预览】:
fastjson-master
----testdata()
--------medium-dict.json.gz(1.24MB)
--------canada.json.gz(585KB)
--------code.json.gz(118KB)
--------large-dict.json.gz(5.31MB)
----indent.go(3KB)
----bench_test.go(6KB)
----number_test.go(2KB)
----decode_test.go(33KB)
----decode.go(27KB)
----encode_test.go(11KB)
----example_test.go(5KB)
----encode.go(31KB)
----LICENSE(2KB)
----tags.go(1KB)
----tagkey_test.go(3KB)
----fold.go(3KB)
----stream.go(12KB)
----stream_test.go(8KB)
----scanner_test.go(6KB)
----scanner.go(25KB)
----README.md(1KB)
----tags_test.go(569B)
----fold_test.go(3KB)

网友评论