]> source.dussan.org Git - vaadin-framework.git/commit
Don't iterate all connectors for unregistering (#14714)
authorLeif Åstrand <leif@vaadin.com>
Sat, 20 Sep 2014 08:52:55 +0000 (11:52 +0300)
committerVaadin Code Review <review@vaadin.com>
Wed, 19 Nov 2014 13:07:55 +0000 (13:07 +0000)
commit828f1f0f20a296d97c693dd2acd004d4c90ad5cd
tree5d8ff2628ad8a402472e86787bc7727ed9dc22f3
parent975b27fc98faa5a341e8687d28061d094cfb486d
Don't iterate all connectors for unregistering (#14714)

This reduces the time spent in unregisterRemovedConnectors when updating
the text of one Label with about 380 connectors registered from 20 to 2
ms as reported by the Vaadin profiler. Performance when removing lots of
connectors remains at about 10 ms for removing 360 connectors. Profiled
in Firefox 32 on OS X.

Change-Id: I203fd8790f8ccc7c098ee91c44831a5ac6c4a82b
client/src/com/vaadin/client/ApplicationConnection.java
uitest/src/com/vaadin/tests/performance/BasicPerformanceTest.java