]> source.dussan.org Git - vaadin-framework.git/commit
Optimize CurrentInstance.set(UI) and .set(VaadinSession). (#14220)
authorFabian Lange <lange.fabian@gmail.com>
Sat, 12 Jul 2014 19:09:32 +0000 (21:09 +0200)
committerVaadin Code Review <review@vaadin.com>
Mon, 14 Jul 2014 11:45:12 +0000 (11:45 +0000)
commita2f2f08a54a9b3d165b0e51c74f91b7e4971211e
treecd0d8d75987df970b9abb8fc098c86011a5d1776
parent9e4bdca5322e211c2988a2138340d9841c46a6ad
Optimize CurrentInstance.set(UI) and .set(VaadinSession). (#14220)

This change reduces the amount of intermediate steps taken to initialize
the thread locals for a given ui or vaadin session.
It mainly takes advantage of reusing the old values from the map in set()
instead of creating new ones to put into the "old" map which is returned.

Change-Id: I4dbaff973f46e73f8f3a0c285b14c97603f2d5a4
server/src/com/vaadin/util/CurrentInstance.java