Skip to content

Conversation

@AllenX2018
Copy link
Collaborator

Description:
This pr improve the Set performance as #107 mentions.With large key path and set value, it brings an about 20% improvement.

Before:

goos: linux
goarch: amd64
pkg: github.com/buger/jsonparser
BenchmarkSetLarge-4   	    1000	   1002014 ns/op	 1611185 B/op	      15 allocs/op

After:

goos: linux
goarch: amd64
pkg: github.com/buger/jsonparser
BenchmarkSetLarge-4   	    1278	    791653 ns/op	 1232897 B/op	       4 allocs/op

@buger buger merged commit e015c37 into buger:master Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants