> On 28 Jun 2021, at 23:29, Rob Pike <[email protected]> wrote: > After Acme was written, I replaced most of the buffer management code in Sam > with that from Acme, which was more efficient
Right, that makes sense. > 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. Possibly, I’m still exploring the code. Re-reading Sam paper though, memory management section seems to imply custom allocator, ran on both terminal and host to efficiently hold strings in memory via variable length arrays. > As always, though, my memory may be faulty; it compacts too often. Ha Silas ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf83e4250af593565-M2eda808e9e8fed8b9d6abce0 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
