lifetime of BugFixArchives?
Ned Konz
ned at bike-nomad.com
Sat Jun 28 19:46:20 UTC 2003
I've added async loading of updates to BugFixArchiveViewer. I've also
made it so that if you open another viewer you don't have to wait for
another BFA to be built (so that the BFAs are shared).
I have a registry by name in the class side of BugFixArchive. So far
so good. Now the question: how long should these stick around?
The problem is that all the ArchivePosts can add up to quite a bit of
data (since they hold all the text in memory). On my system, I loaded
a bunch of back posts, and the accumulated size of the ArchivePosts
was about 6.5Mb.
Still, it's nice to not have to wait to bring up a BFAV.
Here are some possibilities that I've come up with:
- registry is weak; when no viewers are up, the archive posts can get
GC'd.
- registry is strong; ArchivePosts live until saving the image or on
manually clearing them.
- registry is strong; ArchivePosts get saved with image and must be
manually cleared from BFAV menu.
- registry is weak, but posts don't get GC'd for a while after the
last Viewer is deleted (but they get GC'd at image save or shutdown).
Any preferences?
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|