Skip to content

opt(Clone): use reflect.NewAt when possible to reduce allocations#8

Open
OneOfOne wants to merge 2 commits intomainfrom
opt-clone
Open

opt(Clone): use reflect.NewAt when possible to reduce allocations#8
OneOfOne wants to merge 2 commits intomainfrom
opt-clone

Conversation

@OneOfOne
Copy link
Owner

# old
BenchmarkClone-32            318      17493634 ns/op    144224559 B/op   1052701 allocs/op
# new
BenchmarkClone-32           1386       3779763 ns/op     9744636 B/op       2076 allocs/op

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.

1 participant