]> source.dussan.org Git - vaadin-framework.git/commit
Improve performance of setNeedsMeasure (#16972).
authorFabian Lange <lange.fabian@gmail.com>
Mon, 2 Mar 2015 12:08:02 +0000 (13:08 +0100)
committerFabian Lange <lange.fabian@gmail.com>
Wed, 11 Mar 2015 08:57:21 +0000 (09:57 +0100)
commited8ac01fbd34d4ef8654bc458b83773898aa55b4
tree83f797f6a361b18851d595e951fca08f056f9fc2
parentc2a85b37901a70fa3134c0dc2adfcff97e7b06e8
Improve performance of setNeedsMeasure (#16972).

This change removes the method LayoutDependenyTree.setNeedsMeasure which
takes a connectorId as first param.
In all places where it is used, the ComponentConnector is actually known,
so this change avoids looking it up over and over again.
Also The lookup would need to lookup the ConnectorMap every time.

Change-Id: I2593b0bede05cd69889ba68aac854cfba43f70b1
client/src/com/vaadin/client/LayoutManager.java
client/src/com/vaadin/client/ui/layout/LayoutDependencyTree.java