Skip to content

Commit

Permalink
Small memory optimization (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
xqrzd authored May 15, 2022
1 parent b3a0b74 commit cff3130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Knet.Kudu.Client/Scanner/PartitionPruner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public static PartitionPruner Create(
// Each hash component simply appends its bucket number to the
// partition key ranges (possibly incrementing the upper bound by one bucket
// number if this is the final constraint, see note 2 in the example above).
var partitionKeyRanges = new List<PartitionKeyRangeBuilder> { new PartitionKeyRangeBuilder(128) };
var partitionKeyRanges = new List<PartitionKeyRangeBuilder> { new PartitionKeyRangeBuilder(32) };

for (int hashIdx = 0; hashIdx < constrainedIndex; hashIdx++)
{
Expand Down

0 comments on commit cff3130

Please sign in to comment.