FFM API allocation shootout

Brian S O'Neill bronee at gmail.com
Tue Aug 1 17:10:28 UTC 2023


On 2023-08-01 09:52 AM, Maurizio Cimadamore wrote:
> 
> On 01/08/2023 17:19, mail at smogura.eu wrote:
>> * Should all memory allocations even with custom allocators be tracked 
>> - this can be a little bit error prone.
> 
> Custom allocators/arenas came up twice.
> 
> I don't think custom arenas would defeat the counting - I'd expect most 
> custom arenas (like the PoolArena used in the benchmark) to just 
> delegate to a "true" confined arena under the hood - so, some "tracked 
> allocation would still occur.
> 

I was thinking it might be useful to have a region-based arena not 
backed by an ordinary MemorySegment. Reporting "true" memory usage might 
need to be handled differently.


More information about the panama-dev mailing list