Adding a new imediate type

Bert Freudenberg bert at
Thu Jan 5 22:57:21 UTC 2006

Am 05.01.2006 um 22:08 schrieb Bryce Kampjes:

> Andreas Raab writes:
>> Bryce Kampjes wrote:
>>> If you're trying to speed up object creation for a small frequently
>>> used object then writing a custom primitive to quickly create the
>>> object will be much easier. Squeak's general new primitive is very
>>> slow.
>> Do you have any evidence towards that end? It would be simple to add
>> specialized versions of primitiveNew to the mainstream VMs if it  
>> makes a
>> real difference.
> John McKintosh measured it, I haven't yet profiled the VM
> seriously. I've noticed that opening a large Morphic explorer seems to
> be spending 50% of it's time creating points, this is my
> interpretation of a Squeak profile.

But Points *do* have a special primitive! Number 18?

> I've also read through the Slang
> code for new.
> It's enough empirical evidence for me to act.
> Bryce

- Bert -

More information about the Squeak-dev mailing list