Skip to content

Commit

Permalink
Single allocation
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <mattalord@gmail.com>
  • Loading branch information
mattlord committed Aug 21, 2024
1 parent f98d261 commit 7e8f008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/vttablet/tabletmanager/vdiff/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (td *tableDiffer) genRowDiff(queryStmt string, row []sqltypes.Value, opts *
// Include PK columns first and do not truncate them so that
// the user can always at a minimum identify the row for
// further investigation.
pks := make(map[int]struct{})
pks := make(map[int]struct{}, len(td.tablePlan.selectPks))
for _, pkI := range td.tablePlan.selectPks {
addVal(pkI, 0)
pks[pkI] = struct{}{}
Expand Down

0 comments on commit 7e8f008

Please sign in to comment.