Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Performance of event handling

Hello experts,

Are there already some researches regarding the performance of event handling in SWT for non-trivial applications? From time to time I need to debug our application through code of SWT event handling and depending on the control there are quite a large number of listeners and for each event it steps through all the listeners. Wouldn't it be more efficient if adding a listener would sort them by their event type, so the loop knows when it can abort earlier? Wouldn't it be better, to ensure to have just 1 (instead of multiple) listeners of the same type, so the array of all listeners could be binary searched?

--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog


Back to the top