Optimize Follower.isOutOfSync()
This is a fast-path method which does a few duplicate checks
and calculations that may end up being unnecessary.
Restructure it so we check each partial condition just once
and compute required inputs only when we are going to need them.
Change-Id: I67a0089693a2ba1cd8c06c43504266534090545b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
d3c5dc3b0f6bea3fa1c2f964353b87d1a9fcaef8)
©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.