[KCP] new initialize pattern

Serge Stinckwich Serge.Stinckwich at info.unicaen.fr
Sun Aug 24 18:45:09 UTC 2003


Hi all,

Noury got some email problems, so i forward his message to the list.

----- Message transféré de bouraqadi at ensm-douai.fr -----
   Date : Sun, 24 Aug 2003 18:27:16 +0200
     De : bouraqadi at ensm-douai.fr
  Sujet : [KCP]new initialize pattern

Hi,

I just uploaded the change set to generalize the use of the
new-initialize 
pattern. This makes every object answer the initialize message (empty
method 
hold by Object). The new and new: methods hold by Behavior are redefined
to 
send the initialize message to every new instance.
I also removed all other redefinition of new or new: that does the same
job.

In order to evaluate the effect of this change on performance I run 
macrobenchmark on my laptop PIII 1.2GH with 256MB RAM. Here are the
result I 
got.

-Before loading the change set: #(6187 68898 21508 9724 0 7097 7097)

-After loading the change set: #(6683 70241 21210 10757 0 6815 6815).

-Percentages of After/Below:  #(108 101 98 110 - 96 96)

When percentage are less than 100, they mean that the change improve 
performance.

Noury


-- 
Serge Stinckwich                                         -< )
Université de Caen>CNRS UMR 6072>GREYC>MAD                /~\
http://www.iutc3.unicaen.fr/serge/                       (/  |
Smalltalkers do: [:it | All with: Class, (And love: it)] _|_/



More information about the Squeak-dev mailing list