Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

v0.2.0 #4

520MianXiangDuiXiang520 started this conversation in General
Discussion options

自定义json的解释器,不用先使用 decode/json 序列化反序列化即可实现 json 字符串和 JsonNode 对象之间的相互转换,提高性能:

>go test -bench=.
goos: windows
goarch: amd64
pkg: github.com/520MianXiangDuiXiang520/json-diff
BenchmarkMarshal-4 27956 43720 ns/op
BenchmarkMarshalOld-4 21774 51417 ns/op
BenchmarkUnmarshal-4 21921 58335 ns/op
BenchmarkUnmarshalOld-4 19902 57680 ns/op
PASS
ok github.com/520MianXiangDuiXiang520/json-diff 7.533s

This discussion was created from the release v0.2.0.
You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /