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

crypto/x509: reduce memory usage when parsing system root certs? #26731

Open
bradfitz opened this issue Aug 1, 2018 · 0 comments
Open

crypto/x509: reduce memory usage when parsing system root certs? #26731

bradfitz opened this issue Aug 1, 2018 · 0 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Performance
Milestone

Comments

@bradfitz
Copy link
Contributor

bradfitz commented Aug 1, 2018

I noticed that loading the x509 system roots and parsing their certificates on Linux takes 526kB of memory.

(by making an HTTPS request for the side-effect of loading them: https://play.golang.org/p/re1rB_Ui1nS then hitting pprof)

I suspect have common subfields that might be able to share memory? Or does our super transparent representation preclude that?

GitHub won't let me upload an SVG, so:
screen shot 2018-07-31 at 7 30 03 pm

/cc @FiloSottile

@bradfitz bradfitz added this to the Unplanned milestone Aug 1, 2018
@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Performance
Projects
None yet
Development

No branches or pull requests

2 participants