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

fix: don't iterate over certs if not validating certs #4797

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

lrstewart
Copy link
Contributor

@lrstewart lrstewart commented Sep 24, 2024

Description of changes:

Fix a performance regression for customers with a very large number of certificates.

Testing:

Added a unit test.

Adding a benchmark test for this would currently be difficult, because our benchmark tests use Rust. The Rust bindings currently don't support multiple certificates of the same type (see the description of #3860), so can only load 3 cert chains. However, a customer who uses 10k certificates has tested this fix and verified that it fixes the performance regression. I also verified it locally with perf.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@github-actions github-actions bot added the s2n-core team label Sep 24, 2024
@lrstewart lrstewart marked this pull request as ready for review September 24, 2024 19:13
@lrstewart lrstewart enabled auto-merge (squash) September 24, 2024 21:23
@lrstewart lrstewart merged commit edc8736 into aws:main Sep 25, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants