2009/11/2 Nicolas Cellier <[email protected]>:
> 2009/11/1 Igor Stasenko <[email protected]>:
>> 2009/11/1 Lukas Renggli <[email protected]>:
>>>> Another question , which Stephane noted already, is the overhead of
>>>> broadcasting.
>>>
>>> First of all, announcements are magnitudes faster than the ancient
>>> change-update and trigger frameworks.
>>>
>>
>> i having zero interest in ancient stuff. This topic is about announcements.
>>
>>> The problem of broadcasting does not apply to announcements, because
>>> the observer only registers and receives events he is interested in.
>>>
>> nope. this problem applies to announcements as well. As soon as you
>> having multiple subscribers
>> listening for same event, sending this event to all of them is called
>> broadcasting.
>> Please tell me if this definition is wrong.
>>
>> But in addition, announcer also iterates even over those subscribers
>> who would never want to receive some announcements.
>> I thought that Stephane talking about this overhead, not about some
>> dusty, ancient code which i never seen.
>>
>
> Igor, even if you open a shiny new Pharo image, I'm afraid you'll have
> to contemplate plenty of ancient code.
> Note sure the most ancient the most dusty though ;).
>
> FIY, st80 MVC was broadcasting to 99% of ignorers with a long chain of
> this kind:
> self changed: aSymbol SENT FROM THE MODEL
> -> self changed:with:
> --> self changed:with:from:
> ---> update:with:from: BROADCAST IN EACH dependents (each subview was
> potentially)
> --> update:with:
> -> update:
>
Oh yeah, i seen that code, and Dependents class var in Object class,
which is a dictionary of dictionaries...
This model, as well as morphic extensions, takes roots from Self's
morphic, where you can easily extend
any object state by adding new slots to it. In smalltalk we don't have
dynamic named slots, and thus we
having such ugly crutches :)

> I hope we don't replicate this scheme, I had understood Announcements
> did not thanks to explicit subscription.
> Anyway, a bit of archeology is always helpfull when cleaning Smalltalk...
>

It is strange, i have a feeling that people think i am being
short-sighted or don't understand things,
while i'm trying to show the potentional bottlenecks of Announcements
framework itself...

> Nicolas
>



-- 
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to