pulumi/pkg/resource/deploy/providers
Luke Hoban 2067e27ee6
Avoid configuring providers twice during preview (#4004)
In the very common case where provider configuration does not change, during preview we were calling `Configure` on the cloud provider twice - once for the "old" configuration, and once for the "new" configuration.

This is not necessary, and we can just avoid using the new provider when configuration has not changed, since we will have configured the old provider very early so if we can use that we should.

Note that this technically doesn't prevent the second call to `Configure` from being made, but it prevents us from ever waiting on it.  We may want to go further and avoid even calling `Configure` on the provider in this case.

Part of #3671.
2020-03-01 14:41:46 -08:00
..
provider.go Load specific provider versions if requested (#2648) 2019-04-17 11:25:02 -07:00
provider_test.go Load specific provider versions if requested (#2648) 2019-04-17 11:25:02 -07:00
reference.go Add a URN validation method. (#3386) 2019-10-21 19:09:39 -07:00
reference_test.go Add a URN validation method. (#3386) 2019-10-21 19:09:39 -07:00
registry.go Avoid configuring providers twice during preview (#4004) 2020-03-01 14:41:46 -08:00
registry_test.go Avoid configuring providers twice during preview (#4004) 2020-03-01 14:41:46 -08:00