Optimize conversionMapping table 39/7639/1
authorRobert Varga <robert.varga@pantheon.sk>
Tue, 3 Jun 2014 10:50:26 +0000 (12:50 +0200)
committerRobert Varga <robert.varga@pantheon.sk>
Tue, 3 Jun 2014 11:02:02 +0000 (13:02 +0200)
commite82ecc6bb4235e792b21964019ea07fc62e9ad3c
treeb3b36fa12ffc843fc20962b1fae859b90b5c21d3
parent771671faaad1fe2fd38fc051b3bdd1e59b23d4cc
Optimize conversionMapping table

Once the table has been initialized, we can switch it to immutable, as
the keys (Short) provide fast hashCode/equals. Saves memory and
increases lookup speed.

Change-Id: I4698f44ce5a8e83c7c54e544e5ab72487f22a92e
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/common/ConvertReactor.java