You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf: reduce allocation in MemoizeFields for common cases (#1726)
## Which problem is this PR solving?
All key fields are memoized during ingest, `MemoizeFields` are called
right before making a sampling decision. Its purpose is to make sure key
fields are memoized once even after a config reload. Config reload
should be rare. We don't need to pre-allocate the `keysToFind` slice
during normal operation.
## Short description of the changes
- don't pre-allocate `keysToFind` for common cases
0 commit comments