We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9e37418 + a97bea2 commit 8cd82d8Copy full SHA for 8cd82d8
arraycontainer.go
@@ -366,8 +366,8 @@ func (ac *arrayContainer) iorArray(value2 *arrayContainer) container {
366
// the second check is to handle overly large array containers
367
// and should not occur in normal usage,
368
// as all array containers should be at most arrayDefaultMaxSize
369
- if newSize > 8192 && maxPossibleCardinality <= 8192 {
370
- newSize = 8192
+ if newSize > 2*arrayDefaultMaxSize && maxPossibleCardinality <= 2*arrayDefaultMaxSize {
+ newSize = 2 * arrayDefaultMaxSize
371
}
372
newcontent := make([]uint16, 0, newSize)
373
copy(newcontent[len2:maxPossibleCardinality], ac.content[0:len1])
0 commit comments