After Acme was written, I replaced most of the buffer management code in Sam with that from Acme, which was more efficient - it did the database stuff in a different order that was one pass quicker. It's possible the old code used an arena allocator, I don't remember, but it's possible you're referring to the code in samterm, which grew up on the Blit and likely had some compacting arena management code in it to keep the memory footprint small. As always, though, my memory may be faulty; it compacts too often.

-rob


On Tue, Jun 29, 2021 at 8:20 AM silas poulson <silas8642@hotmail.co.uk> wrote:
Hi,

Recently discovered a blog post[1] stating Sam used to have arena
based allocators.

Having difficulty finding more about this - does anyone know what the
allocator looked like and why the source returned to using the
standard allocators.

Silas

[1]https://jeremywsherman.com/2012/02/28/memory-allocation-in-sam/


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tf83e4250af593565-M69cd9bb1a4303e77810a75e6
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription