Skip to main content

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

Hey ya,

I'm not aware of event-based performance tests being done in the last ~3 years or so. The eventTable code looks pretty old.
Sorting the event table upfront might indeed improve performance somewhat, but it might also increase code clutter.

I would be happy to review a patch if there is an accompanying snippet that shows improvement in performance across platforms.

Thank you

Leo


On Tue, Jul 18, 2017 at 3:36 AM, Thomas Singer <ts-swt@xxxxxxxxxxx> wrote:
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
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



--

Leo Ufimtsev

Software Engineer

Red Hat


90 Eglinton Ave E #502,

Toronto, ON M4P 2Y3

Leonidas@xxxxxxxxxx  

CHAT:

  - IRC: http://webchat.freenode.net/?channels=#swt

  - MatterMost: https://mattermost.eclipse.org/eclipse/channels/platform-swt


Back to the top