Commit a24bf7b
committed
DefaultEventBus: avoid publishing events nobody is interested in
The AWT EventQueue is really slow: EventQueue.invokeAndWait() can take
up to 30x as long as creating a new thread and starting it on the
provided Runnable.
If there is not even a subscriber to the event we are about to send,
let's just not bother.
Signed-off-by: Johannes Schindelin <[email protected]>1 parent 763457e commit a24bf7b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
0 commit comments