-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optimize BDDSourceManager #3935
Conversation
active but unreferenced sources. Not having one makes the manager trivial, which makes source tracking more efficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @anothermattbrown)
projects/batfish-common-protocol/src/test/java/org/batfish/common/bdd/BDDSourceManagerTest.java, line 204 at r1 (raw file):
Map<String, Configuration> configs = ImmutableMap.of(hostname, config); BDDSourceManager mgr = BDDSourceManager.forNetwork(_pkt, configs, true).get(hostname); assertTrue(mgr.isTrivial());
no tests where we assert the opposite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 2 files reviewed, 1 unresolved discussion (waiting on @dhalperi)
projects/batfish-common-protocol/src/test/java/org/batfish/common/bdd/BDDSourceManagerTest.java, line 204 at r1 (raw file):
Previously, dhalperi (Dan Halperin) wrote…
no tests where we assert the opposite?
added some
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
Codecov Report
@@ Coverage Diff @@
## master #3935 +/- ##
============================================
- Coverage 74.86% 74.86% -0.01%
- Complexity 24089 24092 +3
============================================
Files 2027 2027
Lines 96668 96672 +4
Branches 11509 11512 +3
============================================
+ Hits 72367 72369 +2
- Misses 19044 19050 +6
+ Partials 5257 5253 -4
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3.
Reviewable status: complete! all files reviewed, all discussions resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r4.
Reviewable status: complete! all files reviewed, all discussions resolved
* When no sources are referenced, we don't need a representative of the active but unreferenced sources. Not having one makes the manager trivial, which makes source tracking more efficient.
When no sources are referenced, we don't need a representative of the
active but unreferenced sources. Not having one makes the manager
trivial, which makes source tracking more efficient.