Array destructor#14
Conversation
|
Thanks, I'll take a look. Note that it should be exercised for |
|
@hsutter, the registration of destructors is done in So, right now,
I think option 1 would be space and time inefficient since we'll have a lot more |
|
@FatihBAKIR Actually it is beneficial, in the intended use case is |
|
Thanks again for this PR. For now I'm waiting for feedback and bug reports from actual use of the library, and deferring enhancements and optimizations until then but keeping them in the backlog. |
I've implemented the array destructor storage compaction with support for merging and splitting w.r.t. the comment on deferred_heap.h:77.
Although I've implemented the merging when a new object or array is added just after another array by incrementing the count instead of pushing another
array_destructor,deferred_heapnever allocates two blocks consecutively (thestartblock in thegpage), therefore, such a case never happens.