# Re: [stack] Pools; Unification

## Louis Madon — 2000-09-09 23:30:17

    Soren Renner wrote:

     > MORE ABOUT TOY

     ...

     > The garbage pools have been implemented. The only objection to them -- that garbage of one type couldn't be recycled into a different type -- is weak, because the pools themselves can be exposed to Oberon's GC just by setting pool := NIL, after which a collection can be forced with System.Collect. The pools are needed, too, because without them [ 1 [1 plus] 10000000 times] leaves ten million boxes of garbage each containing the integer 1. With the pools, only one box is left in the pool (because "plus" always tosses one box). Incidentally, this takes about 4 seconds on my 400 mhz x86 box running NO System 3 -- about 2.5 million additions per second. How does this compare with the Joy-in-C machines?

    >

     Using official Joy, compiled with gcc -O2, I get 7.5 seconds on a 466Mhz

    celeron and 6.4 seconds on a 333Mhz ppc (iMac).

    --

    Louis.