You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've discovered that we can likely get a huge performance benefit by calling packages.Load only once. Currently, it is called once per file, which means that the entire dep tree is being loaded multiple times, thus resulting in O(n^2) performance. We should instead gather the list of files to load, then make one call to packages.Load. This should improve performance.
I've discovered that we can likely get a huge performance benefit by calling packages.Load only once. Currently, it is called once per file, which means that the entire dep tree is being loaded multiple times, thus resulting in
O(n^2)
performance. We should instead gather the list of files to load, then make one call topackages.Load
. This should improve performance.https://github.com/vektra/mockery/blob/master/pkg/parse.go#L76
https://github.com/vektra/mockery/blob/master/pkg/parse.go#L100
The text was updated successfully, but these errors were encountered: