Benchmark Allocation Ratios #149
Replies: 2 comments
-
The following structures have internal memory allocations:
Toy_String also uses Some quick notes:
(*capacity refers to a single element within the bucket structure - if any element runs out of space, a new bucket is automatically added to the linked list, so the overall system has no maximum value outside of hardware restrictions.)
Things to be benchmarked:
Prerequisites:
|
Beta Was this translation helpful? Give feedback.
-
Closing this as unneeded. |
Beta Was this translation helpful? Give feedback.
-
Right now, the first container allocations set the capacity to about 8 (and other min values), but after that, the capacity is doubled each time.
It's possible that later allocations may need smaller increases in space, if the users aren't filling the structures to their maximum capacity very often.
There's a mathematical principle behind this, but I can't remember the details.
Beta Was this translation helpful? Give feedback.
All reactions