Faster doSaveModule - #2833
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## performance-improvements-main #2833 +/- ##
===============================================================
- Coverage 45% 45% -1%
+ Complexity 6722 6719 -3
===============================================================
Files 841 841
Lines 67060 67060
Branches 10016 10016
===============================================================
- Hits 30790 30778 -12
- Misses 33886 33895 +9
- Partials 2384 2387 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
1531f00 to
880892c
Compare
7801b9c to
ebf322d
Compare
880892c to
c06368f
Compare
|
sungshik
left a comment
There was a problem hiding this comment.
A few clarifying comments
| ms.messages[currentModule] = toSet(m1.messages); | ||
|
|
||
| filteredModuleScopePaths = {ml.path |loc ml <- filteredModuleScopes}; | ||
| // filteredModuleScopePaths = {ml.path |loc ml <- filteredModuleScopes}; |
There was a problem hiding this comment.
Variable filteredModuleScopePaths is unused. I am keeping it as a comment, instead of removing it, because there are other commented lines in this function that use that variable.
|
|
||
| m1.definitions = ( def.defined : def | Define def <- m1.defines); // TODO this is derived info, can we derive it later? | ||
| // Remove default expressions and fragments | ||
| // (Relatively expensive: can take >50% of the execution time of this function) |
There was a problem hiding this comment.
Adding this comment here as a reminder that this piece of code might be, or not, amenable to further optimization.



No description provided.