Idea for a possibly better Collection occurrencesOf method.
bryce at kampjes.demon.co.uk
Tue Sep 12 20:26:05 UTC 2006
Simon Michael writes:
> Bryce Kampjes wrote:
> > Unfortunately, many inner loops in Squeak spend most
> > of their time calling primitives so improve their performance I need
> > to reimplement the primitives.
> Bryce, does this mean: you rewrite the (c) primitives as squeak methods, so
> that exupery can compile them ?
No, I rewrite the primitives in Exupery to generate intermediate
language. This way Exupery can compile them into native code. This is
the right approach for the heavily used primitives such as #at:, #new,
and #size. Exupery will specialise the primitive for it's receiver
type when it compiles it.
For less frequently called primitives or when it's not possible to
specialise the primitive it would probably be sensible to call the C
More information about the Squeak-dev