The memory pre-allocation method for iterative index building needs to be implemented for flat indices. This is because flat indices have one dynamically allocated array that may overshoot the amount required.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.
Description
The memory pre-allocation method for iterative index building needs to be implemented for flat indices. This is because flat indices have one dynamically allocated array that may overshoot the amount required.
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. For more information on following Developer Certificate of Origin and signing off your commits, please check here.