snazzy-d/sdc

Resize large GC allocs in place whenever possible.

deadalnix opened this issue · 0 comments

Right now, if large allocation require a change in the number of pages that they use, it always results in a new allocation. It would be beneficial to be able to reallocate "in place".

Relevant code:
https://github.com/snazzy-d/sdc/blob/master/sdlib/d/gc/tcache.d#L86-L88

This is pretty much self explanatory. The current behavior clearly is sub-optimal.