Skip to content
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 Makefile with lazy evaluation of packages #1046

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

sevein
Copy link
Contributor

@sevein sevein commented Oct 15, 2024

This commit updates the declarations of PACKAGES and related variables in the Makefile to implement lazy loading, so the computation is deferred until they are actually needed.

Running commands like make help should now be faster (~80ms compared to ~500ms).

@sevein sevein requested review from djjuhasz and jraddaoui October 15, 2024 06:17
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.48%. Comparing base (49319a8) to head (7d5bfb8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1046      +/-   ##
==========================================
+ Coverage   55.45%   55.48%   +0.03%     
==========================================
  Files         103      103              
  Lines        6021     6021              
==========================================
+ Hits         3339     3341       +2     
+ Misses       2432     2431       -1     
+ Partials      250      249       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@djjuhasz djjuhasz left a comment

Choose a reason for hiding this comment

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

LGTM 👍

This commit updates the declarations of `PACKAGES` and related variables in the
Makefile to implement lazy loading, so the computation is deferred until they
are actually needed.

Running commands like `make help` should now be faster (~80ms compared to
~500ms).
@jraddaoui jraddaoui force-pushed the dev/make-lazy-loading branch from f21aef1 to 7d5bfb8 Compare October 15, 2024 16:39
Copy link
Collaborator

@jraddaoui jraddaoui left a comment

Choose a reason for hiding this comment

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

Nice, thanks!

@jraddaoui jraddaoui merged commit 7d5bfb8 into main Oct 15, 2024
12 checks passed
@jraddaoui jraddaoui deleted the dev/make-lazy-loading branch October 15, 2024 16:40
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.

3 participants