Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only convert to any on KindAny values (#83)
* Only convert to any on KindAny values Indiscriminately calling slog.Value.Any() on the value causes extra allocations for non-any values. Benchmark shows that for each string attribute, an extra 16-byte allocation is incurred. This commit adds a check so Any() is only called on values of KindAny. * drop comment --------- Co-authored-by: lmittmann <[email protected]>
- Loading branch information