Il 26/07/2014 18:20, Holger Hans Peter Freyther ha scritto: > On Sat, Jul 26, 2014 at 02:18:12PM +0200, Holger Hans Peter Freyther wrote: > >> Would now call initialize twice. I will squash the two patches and >> write a "NEWS" items. > > I have a macro-benchmark of [] vs. [Object new] vs. [Object basicNew] > and we pay a lot for the extra message send. This is besides the code > in _gst_send_message_internal already checking for the "self" routine.
Yes, this is why I was reluctant to do this. > I could cheat and add another "cache" for Behavior>>#new or make it > another kind of primitive? Making it another primitive would lower that cost. Sounds like a good idea. Paolo _______________________________________________ help-smalltalk mailing list help-smalltalk@gnu.org https://lists.gnu.org/mailman/listinfo/help-smalltalk