Skip to content

Faster doSaveModule - #2833

Open
sungshik wants to merge 3 commits into
performance-improvements-mainfrom
performance-improvements/faster-dosavemodule
Open

Faster doSaveModule#2833
sungshik wants to merge 3 commits into
performance-improvements-mainfrom
performance-improvements/faster-dosavemodule

Conversation

@sungshik

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45%. Comparing base (ebf322d) to head (af37e3b).

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sungshik
sungshik force-pushed the performance-improvements/faster-dosavemodule branch 3 times, most recently from 1531f00 to 880892c Compare August 4, 2026 11:44
@sungshik
sungshik force-pushed the performance-improvements-main branch from 7801b9c to ebf322d Compare August 17, 2026 12:59
@sungshik
sungshik force-pushed the performance-improvements/faster-dosavemodule branch from 880892c to c06368f Compare August 17, 2026 13:15
@sonarqubecloud

Copy link
Copy Markdown

@sungshik sungshik left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few clarifying comments

ms.messages[currentModule] = toSet(m1.messages);

filteredModuleScopePaths = {ml.path |loc ml <- filteredModuleScopes};
// filteredModuleScopePaths = {ml.path |loc ml <- filteredModuleScopes};

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding this comment here as a reminder that this piece of code might be, or not, amenable to further optimization.

@sungshik
sungshik marked this pull request as ready for review August 18, 2026 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant