Cache DataTreeModification.getDataAfter() 25/77825/2
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 14 Nov 2018 21:34:43 +0000 (22:34 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 14 Nov 2018 21:36:11 +0000 (22:36 +0100)
commit942f764142e783cf545566c711ba94f9d28f027e
treecf96d04cfc7ad2e419ac6ecfaaae7e92c4a7c2ac
parent0c58f1597bf486780ddb984a8e77bddeac19e577
Cache DataTreeModification.getDataAfter()

Invoking this method is quite costly in case of
LazyDataTreeModification, so cache the returned value, preventing
a potentially-costly operation.

Change-Id: Ibb3169fe77b0d6d2f11dae244a1fe110c37b659e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
elanmanager/impl/src/main/java/org/opendaylight/netvirt/elan/l2gw/ha/HwvtepHAUtil.java
elanmanager/impl/src/main/java/org/opendaylight/netvirt/elan/l2gw/ha/listeners/HwvtepNodeBaseListener.java
elanmanager/impl/src/main/java/org/opendaylight/netvirt/elan/l2gw/ha/merge/MergeCommandsAggregator.java