]> source.dussan.org Git - vaadin-framework.git/commit
Optimizes initial sizes of frequently used Collections. (#14223)
authorFabian Lange <lange.fabian@gmail.com>
Sat, 12 Jul 2014 19:44:09 +0000 (21:44 +0200)
committerVaadin Code Review <review@vaadin.com>
Mon, 14 Jul 2014 12:05:23 +0000 (12:05 +0000)
commitfd27ce8fa25a07062e6643f7edb59bacb96d1f68
treec7945213932e48a312c1b1370d4294f09b3cce97
parenta2f2f08a54a9b3d165b0e51c74f91b7e4971211e
Optimizes initial sizes of frequently used Collections. (#14223)

There are a few places in frequently used core classes which could
initialize collection classes with the correct (or slightly oversized)
length.
Maps are initialized with 2x the size due to its load factor.

Change-Id: I3aee5a60602937a8550ca5a200ec2a529ff36fe9
server/src/com/vaadin/server/JsonCodec.java
server/src/com/vaadin/server/VaadinService.java
server/src/com/vaadin/server/communication/LegacyUidlWriter.java
server/src/com/vaadin/server/communication/ServerRpcHandler.java
server/src/com/vaadin/ui/ConnectorTracker.java