PackageManager: Only iterate on internal fromPath array, not everything
getOrLoadPackage is only used for path-based dependencies,
which are only stored in m_internal.fromPath.
We can thus reduce the iteration by only using fromPath.
If someone had a path-based dependency that pointed to a version-based package,
it would lead to this package being loaded twice, but that's not really a concern,
as it would not lead to problem either.
1 parent d16a08d commit 5fae5a6dd44aa141cb92ec650aabd72f6a26e372
@Geod24 Geod24 authored on 14 Sep 2022
Mathias LANG committed on 15 Sep 2022
Showing 1 changed file
View
source/dub/packagemanager.d