"Mel Martinez" <melm@xxxxxxxxxx> wrote in message
news:b6ae1j$5sm$1@xxxxxxxxxxxxxxxx
2) the granularity of the messaging. Are you saying that for every
registry event you would prefer to broadcast that to every listener?
Doesn't that become problematic in the hypothetical 5000 plugin case?
If there are only two or three plugins that are actually affected by an
event, it is really inefficient to make 5000 calls that each have to
examine the delta to see if it is of concern before no-op'ing. One
badly written plugin could slow up the processing of EVERY event! Maybe
I'm misunderstanding you here.
Yes. but (there has to be one :-) the 5000 plugin case is for 5000
*installed* plugins. Not 5000 *active* plugins. You only need to notify
active plugins. Even still processing the changes for 300 active plugins
could be non-trivial. Plugin writers should follow Pascal's advice and
no-op early and the runtime can likely provide mechanisms to help them do
that (as we do in other places in Eclipse).