[Q] Status of blocks
tblanchard at mac.com
tblanchard at mac.com
Thu Jan 16 09:52:54 UTC 2003
I've always had good luck by doubling the current size of things when
they hit capacity (lacking any more knowledge about what's going on
anyhow). If you do shrinking, I do it when the thing falls to around
25% utilization and then shrink it by half.
Just my heuristic but I find it tends to find something close to the
appropriate size pretty fast.
On Thursday, January 16, 2003, at 05:50 AM, Anthony Hannan wrote:
>
> It's probably because I copy the stack when it grows, but only grow it
> by a small fixed amount (1000 slots ~ 150 frames) each time, causing
> many
> copies of large stacks. Maybe I should grow it by a factor of the
> current size, so it will be copied less and less. This would not be
> hard to have as VM parameters, maybe a growFactor and a growConstant.
>
> Cheers,
> Anthony
>
More information about the Squeak-dev
mailing list
|