Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.13 backport of 26577 #26587

Merged
merged 2 commits into from
Oct 14, 2020
Merged

0.13 backport of 26577 #26587

merged 2 commits into from
Oct 14, 2020

Conversation

jbardin
Copy link
Member

@jbardin jbardin commented Oct 14, 2020

0.13 backport of #26577

DecoderSpec may be called many times, and deeply recursive calls are
expensive. Since we cannot synchronize the Blocks themselves due to them
being copied in parts of the code, we use a separate cache to store the
generated Specs.
Not a great benchmark, but record it here for posterity. Practical
testing with the AWS provider gives us a 98% speedup for simple plans.
@jbardin jbardin requested a review from a team October 14, 2020 16:49
@codecov
Copy link

codecov bot commented Oct 14, 2020

Codecov Report

❗ No coverage uploaded for pull request base (v0.13@ca20bab). Click here to learn what that means.
The diff coverage is 66.66%.

Impacted Files Coverage Δ
configs/configschema/decoder_spec.go 78.37% <66.66%> (ø)

@jbardin jbardin merged commit c37596f into v0.13 Oct 14, 2020
@jbardin jbardin deleted the jbardin/backport-26577 branch October 14, 2020 17:27
@ghost
Copy link

ghost commented Nov 14, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants