-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize the logic to compare the routing entries between ASIC_DB and…
… the prefixes pushed to DUT (#5769) - What is the motivation for this PR? Optimize the logic to compare the routing entries between ASIC_DB and the prefixes pushed to DUT - How did you do it? The idea is to extract the prefixes from the output of the DUT and to avoid using json.load for each routing entry to use set instead of list to check difference. O(n*n) => O(n*lg(n)) How did you verify/test it? Run the test. Signed-off-by: Stephen Sun <stephens@nvidia.com>
- Loading branch information
Showing
1 changed file
with
25 additions
and
16 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