Thread overview
Region-based memory management and GC?
Sep 29, 2017
Jon Degenhardt
Sep 30, 2017
Igor
Sep 30, 2017
Jon Degenhardt
September 29, 2017
Have there been any investigations into using region-based memory management (aka memory arenas) in D, possibly in conjunction with GC allocated memory? This would be a very speculative idea, but it'd be interesting to know if there have been looks at this area.

My own interest is request-response applications, where memory allocated as part of a specific request can be discarded as a single block when the processing of that request completes, without running destructors. I've also seen some papers describing GC systems targeting big data platforms that incorporate this idea. eg. http://www.ics.uci.edu/~khanhtn1/papers/osdi16.pdf

--Jon
September 30, 2017
On Friday, 29 September 2017 at 22:13:01 UTC, Jon Degenhardt wrote:
> Have there been any investigations into using region-based memory management (aka memory arenas) in D, possibly in conjunction with GC allocated memory? This would be a very speculative idea, but it'd be interesting to know if there have been looks at this area.
>
> My own interest is request-response applications, where memory allocated as part of a specific request can be discarded as a single block when the processing of that request completes, without running destructors. I've also seen some papers describing GC systems targeting big data platforms that incorporate this idea. eg. http://www.ics.uci.edu/~khanhtn1/papers/osdi16.pdf
>
> --Jon

Sounds like just want to use https://dlang.org/phobos/std_experimental_allocator_building_blocks_region.html.
September 30, 2017
On Saturday, 30 September 2017 at 07:41:21 UTC, Igor wrote:
> On Friday, 29 September 2017 at 22:13:01 UTC, Jon Degenhardt wrote:
>> Have there been any investigations into using region-based memory management (aka memory arenas) in D, possibly in conjunction with GC allocated memory?
>
> Sounds like just want to use https://dlang.org/phobos/std_experimental_allocator_building_blocks_region.html.

Wow, thanks, I did not know about this. Will check it out.