Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
crypto/x509: reduce memory usage when parsing system root certs? #26731
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?