const slot_counts: [small_bucket_count]SlotIndex = init: 178
179
180
181
182
183 const slot_counts: [small_bucket_count]SlotIndex = init: {
@setEvalBranchQuota(10000);
var result: [small_bucket_count]SlotIndex = undefined;
for (&result, 0..) |*elem, i| elem.* = calculateSlotCount(i);
break :init result;
}
These can be derived from size_class_index but the calculation is nontrivial.