[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-swt-dev] Performance of event handling
|
Hi all,
I've done some measurements with SmartGit (manually performed: starting,
selecting a modified file, reverting it): the results on my Core-i5
desktop machine:
First 5000 events: 137-170us/event
First 7500 events: 149-158us/event
With the attached rewritten EventTable code (events sorted by type,
binary search) the times are not noticeable different:
First 5000 events: 127-155us/event
First 7500 events: 138-175us/event
Hence, it makes sense to keep the current implementation as is.
--
Best regards,
Thomas Singer
=============
syntevo GmbH
http://www.syntevo.com
http://www.syntevo.com/blog
On 2017-07-18 18:56, Leo Ufimtsev wrote:
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
_______________________________________________
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
Attachment:
patches.zip
Description: Zip compressed data