Closed fxamacker closed 10 months ago
Patch coverage: 100.00%
and project coverage change: +0.08%
:tada:
Comparison is base (
74e19aa
) 65.24% compared to head (dda0495
) 65.32%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@ramtinms
looks good to me, Just to confirm my understanding this only iterates over the size of values of the current slab and nothing beyond that? if for example we have an array with many underlying slabs, changes in one element doesn't require the whole array to go and scan all the slabs ?
Yes, this only iterates over the sizes of elements in current slab. It doesn't require scanning of the whole array.
Updates #292 #335
Changes
Recompute slab size by adding all element sizes instead of using the size diff of old and new element because oldElem can be the same storable when the same value is reset and oldElem.ByteSize() can equal storable.ByteSize().
Given this, size diff of the old and new element can be 0 even when its actual size changed.
This is prep work for atree inlining to prevent a bug from surfacing.
main
branchFiles changed
in the Github PR explorer