Skip to content

Don't reinstantiate package_modules within each loop#218

Merged
seddonym merged 1 commit intomasterfrom
optimize-is-external
May 5, 2025
Merged

Don't reinstantiate package_modules within each loop#218
seddonym merged 1 commit intomasterfrom
optimize-is-external

Conversation

@seddonym
Copy link
Collaborator

@seddonym seddonym commented May 5, 2025

From profiling, the _is_external call is surprisingly expensive. This is a quick win to avoid recalculating the package_modules each time we loop.

From profiling, the _is_external call is surprisingly expensive. This is
a quick win to avoid recalculating the package_modules each time we
loop.
@codspeed-hq
Copy link

codspeed-hq bot commented May 5, 2025

CodSpeed Instrumentation Performance Report

Merging #218 will not alter performance

Comparing optimize-is-external (9148ccb) with master (37eaec4)

Summary

✅ 22 untouched benchmarks

@seddonym seddonym marked this pull request as ready for review May 5, 2025 14:03
@seddonym seddonym merged commit ce0d32f into master May 5, 2025
18 checks passed
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