v.21.6Improvement
FlatDictionary Enhances Initial and Max Array Size Options
FlatDictionary addedinitial_array_size,max_array_sizeoptions. #22521 (Maksim Kita).
Why it matters
These options allow users to control the initial and maximum sizes of internal arrays used byFlatDictionary, optimizing memory allocation and improving performance for dictionary lookups especially when the expected sizes are known or can be constrained.How to use it
In theFlatDictionary configuration, set the initial_array_size and max_array_size parameters to appropriate values according to your data size and expected usage patterns. This enables fine-tuned memory management for dictionary lookup operations.