hinted indexed map size
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ func (m *Record) MergeExpand(expand map[string]any) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
oldIndexed := map[string]*Record{}
|
oldIndexed := make(map[string]*Record, len(oldSlice))
|
||||||
for _, oldRecord := range oldSlice {
|
for _, oldRecord := range oldSlice {
|
||||||
oldIndexed[oldRecord.Id] = oldRecord
|
oldIndexed[oldRecord.Id] = oldRecord
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user