pulumi/sdk/python/lib
Luke Hoban bd6410e2fb
[sdk/python] Avoid exponential complexity for from_input/all (#7175)
These mutually recursive functions unintentionally had exponential complexity in nesting depth of objects, arg types and most likely arrays.

Remove the exponential complexity by avoiding direct recursion of from_input on itself, and relying on mutual recursion with all alone to reduce nested substructure.

Also simplify the implementation to aid readability.

Fixes pulumi/pulumi-kubernetes#1597.
Fixes pulumi/pulumi-kubernetes#1425.
Fixes pulumi/pulumi-kubernetes#1372.
Fixes #3987.
2021-06-01 13:11:22 +10:00
..
pulumi [sdk/python] Avoid exponential complexity for from_input/all (#7175) 2021-06-01 13:11:22 +10:00
test [sdk/python] Avoid exponential complexity for from_input/all (#7175) 2021-06-01 13:11:22 +10:00
test_with_mocks Skip flaky python test (#7035) 2021-05-12 09:29:13 -07:00
setup.py [sdk/python] - Fix python lint errors (#6872) 2021-04-26 08:56:15 -07:00