[squeak-dev] SmalltalkImage >> #useUpMemoryWithTinyObjects

tim Rowledge tim at rowledge.org
Sat Dec 7 22:25:40 UTC 2013


On 07-12-2013, at 2:15 PM, Frank Shearar <frank.shearar at gmail.com> wrote:

> Is there any particular reason why this method makes new BitBlt
> instances, as opposed to Object instances? Would it still perform its
> purpose if I changed
> 
> (1 to: 10000) collect: [:i | BitBlt new]
> 
> to
> 
> (1 to: 10000) collect: [:i | Object new]

well a BitBLT is a small object but not as small as a plain Object. You might consider ‘OrderedCollection new:10’ for a similar size

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: BW: Branch on Whim




More information about the Squeak-dev mailing list