Optimize whole-table overwrite 38/79938/15
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 27 Jan 2019 20:55:01 +0000 (21:55 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 31 Jan 2019 00:23:27 +0000 (01:23 +0100)
commit6a28535cface8b4d503cfe223d911d5079921cd6
tree1b0c5f0405c22144bc83ec6912d7b3c4309696db
parent5515885b9fee56bc9dc470cb847bb607d109f285
Optimize whole-table overwrite

When a table is overwritten, we can treat it as a delete followed
by a fill of after-routes. This simplifies the logic quite a bit
and speeds it up. It also allows parts of it to operate on
before/after data rather than a DataTreeCandidateNode, hence it
is a reusable piece we'll need for LLGR_STALE nodes.

JIRA: BGPCEP-495
Change-Id: Ib84296652d84c4616d617583f14e5395058eac1c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/EffectiveRibInWriter.java