Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
feat: use 32 for default pool size
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Apr 15, 2024
1 parent 1be58d5 commit 9574218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func newFieldPool() *fieldPool {
return &fieldPool{
pool: sync.Pool{
New: func() any {
return &fieldContainer{make([]zap.Field, 0, 16)}
return &fieldContainer{make([]zap.Field, 0, 32)}
},
},
}
Expand Down

0 comments on commit 9574218

Please sign in to comment.