Pre-construct prefix masks 45/80545/6
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 22 Feb 2019 14:03:26 +0000 (15:03 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Mar 2019 10:41:30 +0000 (11:41 +0100)
commit3b880c044da3757f1d0c581754cfaf7803fc352a
tree6a3e8293f5c7f63c09c61006b91061ff1d9599ef
parent764338e1e77a803661d9b779426a9fe3cb4e0696
Pre-construct prefix masks

IPV4 can hold at most 33 different masks, which are being held
in immutable arrays. We can save significant amount of allocation
and parsing if we just pre-compute these quads.

JIRA: OPNFLWPLUG-1067
Change-Id: I8eb5507b9615373f0526e7bb2e8a1d7132634295
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/common/IpConversionUtil.java