We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff10385 commit eb8c1ceCopy full SHA for eb8c1ce
types/payload.go
@@ -568,7 +568,9 @@ func (p *Payload) MemoizeFields(keys ...string) {
568
p.missingFields = make(map[string]struct{}, len(keys))
569
}
570
571
- keysToFind := make(map[string]struct{}, len(keys))
+ // We memoize all key fields during ingest, it should be rare to
572
+ // have keys not memoized, we will not prematurely allocate here
573
+ keysToFind := make(map[string]struct{})
574
for _, key := range keys {
575
if _, ok := p.missingFields[key]; ok {
576
continue
0 commit comments