www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Region-based memory management and GC?

reply Jon Degenhardt <jond noreply.com> writes:
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
Sep 29
parent reply Igor <stojkovic.igor gmail.com> writes:
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.
Sep 30
parent Jon Degenhardt <jond noreply.com> writes:
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.
Sep 30