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

Comments

@bradfitz
Copy link
Member

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 the Performance label Aug 1, 2018

@bradfitz bradfitz added this to the Unplanned milestone Aug 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.