Overview of SmartVector in Aptos Move
The SmartVector is a scalable vector implementation based on tables, where elements are grouped into buckets. It is designed to handle large data sets efficiently by combining a small inline vector for low-volume data with a scalable structure for larger volumes.
Internal Structure:
inline_vec: A small vector storing elements directly.big_vec: An optional large vector for scalable storage.inline_capacity: Defines the capacity of theinline_vec.bucket_size: Defines the size of buckets within thebig_vec.