Re: Some more questions

GWRepJohnH@aol.com
Thu, 21 Nov 1996 21:55:24 -0500

>>>1. What is the best way of allocating >64kB of small (few hundred byte)
objects, preferably persistently?<<<
If you want to stay with database instead of going with a huge array (as Ed
suggested) you might find some way to group your items. I had a similar
problem with creating lots of ungrouped items and found that anything over a
few hunderd got really slow, just as you noted. I figured a logical way to
group the _records_ and things now work great.

>>>2. How are global and static variables stored? I presume that they're put
in the relevant code resource.>>>
As Nate said they are in the dgroup. The size of dgroup is reported (after
glue does its work) as the first _resource_ and again on the same line as
your compiled geode size as the apps fixed size. You'll get a warniong if
that size gets bigger than about 1200 bytes.

>>>3. Is there any message that is received when the user interface tree is
built and ready?<<<
Like Ed, I've had success with intercepting
MSG_GEN_PROCESS_OPEN_APPLICATION. And as he said, remember to @callsuper()
or your app won't start ;-)

John