Commits
Click on a commit to change the comparison rangeDon't reinstantiate package_modules within each 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.