The cumulative histogram for the persons field starts with
0: 93.6 %
2: 96.8 %
1: 99.8 %
3: 99.8 %
4: 99.9 %
i.e. optmized for 1 persons is not that useful and we optimize for zero instead which means we can use a normal Vec instead of a SmallVec.
The cumulative histogram for the orginasations field starts with
0: 70.3 %
2: 85.2 %
1: 98.7 %
3: 99.1 %
4: 99.3 %
which suggests to optimize for <= 2 items instead of <= 1.
Note that these are not schema changes because Vec<T>
and SmallVec<[T; N]>
are both just sequences in the persistent data model.
On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.