Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
funcr: optimize WithValues/WithName/WithCallDepth
All of these functions indirectly copied the entire Options struct because it gets stored by value in the Formatter and thus fnlogger. The struct is read-only, therefore sharing a single copy by pointer via different logger instances is possible. Performance for the context value benchmark got better.
- Loading branch information