Optimize GetAsyncReplyMessageFactory bitmasks 46/94346/3
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 2 Jan 2021 20:04:25 +0000 (21:04 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 2 Jan 2021 22:39:25 +0000 (23:39 +0100)
commit15505267c071c9693e2f0c1caf7cbe1e6b904f13
tree10c6b94c19798c45068e8e73c1c4da28067518e3
parent3ba092219515a37f96231c3cb5515a7e961a1529
Optimize GetAsyncReplyMessageFactory bitmasks

Do not instantiate a HashMap just to store offsets we have readily
available. Use direct bitmask construction instead, speedings things
up quite a bit.

Since we are doing the same thing for three difference enumerations,
introduce a common methods to do the heavy lifting.

Change-Id: I2999b00df64f596f3d025d9e83c5e3dcca376d90
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/serialization/factories/GetAsyncReplyMessageFactory.java