Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #6355

Re: Storage buffer for a text file?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From John Ames <commodorejohn@gmail.com>
Newsgroups comp.sys.apple2.programmer
Subject Re: Storage buffer for a text file?
Date Mon, 14 Sep 2026 08:21:19 -0700
Organization A place where nothing fits quite right
Lines 19
Message-ID <20260914082119.00003da3@gmail.com> (permalink)
References <1184o84$696m$1@dont-email.me>
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
Injection-Date Mon, 14 Sep 2026 15:21:25 +0000 (UTC)
Injection-Info dont-email.me; logging-data="1716299"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+nAZgE/63n0TE7RKrnGffIcaNGD7ioQzU="; posting-host="4b1f033175adfbff1b62b164001e6206"
Cancel-Lock sha1:jtjTbteU10G1XmpyktIH9knn/9Q= sha256:jB5+bxHLQlWRtrnWqIYXANwtCtTYSJUQA4Gth7e81LY= sha1:798Jb4UUKgrKqwaktTDRIuc3LJY= sha256:fwxJ2yLSwlH+uQ0smLAaK0a3x9dwVxBLDnJw2SYGFvY=
X-Newsreader Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32)
Xref csiph.com comp.sys.apple2.programmer:6355

Show key headers only | View raw


On Sat, 12 Sep 2026 23:46:13 -0000 (UTC)
mpower <mpower-codeworks@gmail.com> wrote:

> I'm already using a lot of RAM for the MGTK, and 32kb seems like a
> "safe" number. It is working fine, I'm just hesitant about getting
> into the RAM expansion cards because I don't really understand that
> yet.
> 
> Any thoughts?

32KB is reasonable enough for a small editor (worked for Notepad, all
those years!) That said, while I don't know what your internals look
like, any editor with an internal structure more complex than "single
contiguous text buffer" should be pretty straightforward to extend to
arbitrarily large sizes. Banking makes things a little more complex,
but if you're already using something like a linked list of lines or
chunks then you only need to tag the links with a bank #, in addition
to the pointer itself.

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Storage buffer for a text file? mpower <mpower-codeworks@gmail.com> - 2026-09-12 23:46 +0000
  Re: Storage buffer for a text file? John Ames <commodorejohn@gmail.com> - 2026-09-14 08:21 -0700
    Re: Storage buffer for a text file? mpower <mpower-codeworks@gmail.com> - 2026-09-15 04:21 +0000

csiph-web