-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make SchedulingGroup::Leave processing more efficient
Maintain a BitSet of advertised RibOut indices in the PeerState so that PeerState::IsMember can use BitSet::test operation which is O(1), instead of map::count operation which is O(Log(N)). Time required to execute the new unit test went from 11.x seconds to 2.x seconds. Change-Id: Ia6daf9242fbd91793938897d7cc3bec8ac02df04 Partial-Bug: 1461322
- Loading branch information
Nischal Sheth
committed
Jun 2, 2015
1 parent
e614cfe
commit 28ced7c
Showing
2 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters