Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
11639: Make the PluginMapper lazy r=AaronFriel a=Frassle What it says on the tin. Makes the PluginMapper lazy so for yaml we don't have to load every plugin in ~/.pulumi/plugins. We don't load any provider plugins until we need to load an conversion mapping that we don't yet have. Once we find the first provider that supplies a conversion mapping we stop looking for any more. The only other improvement to make here that I think is possible is to shut down the providers after asking for their conversion mapping data. But that needs a rejig of how plugin.Host works, which is hard to do right now as it's a public api. Co-authored-by: Fraser Waters <fraser@pulumi.com>
- Loading branch information
Showing
3 changed files
with
80 additions
and
38 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...13--cli--improve-performance-of-convert-to-not-try-and-load-so-many-provider-plugins.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changes: | ||
- type: fix | ||
scope: cli | ||
description: Improve performance of convert to not try and load so many provider plugins. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters