From: silas poulson <silas8642@hotmail.co.uk>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] Sam arena allocators
Date: Tue, 29 Jun 2021 00:33:55 +0000 [thread overview]
Message-ID: <694F91DC-E889-4B9F-A77D-377FB458585D@hotmail.co.uk> (raw)
In-Reply-To: <CAKzdPgxS-0ns+H2-Kejaby=xtR7bJe9AZs8+-Yafs2AHKcn+WQ@mail.gmail.com>
> On 28 Jun 2021, at 23:29, Rob Pike <robpike@gmail.com> 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
next prev parent reply other threads:[~2021-06-29 0:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-28 22:18 silas poulson
2021-06-28 22:29 ` Rob Pike
2021-06-29 0:33 ` silas poulson [this message]
2021-06-29 23:44 ` noel.hunt
2021-06-30 2:07 ` silas poulson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=694F91DC-E889-4B9F-A77D-377FB458585D@hotmail.co.uk \
--to=silas8642@hotmail.co.uk \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).