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

[tailscale1.17] crypto/x509: do not gzip certs #17

Merged
merged 1 commit into from
Aug 19, 2021

Conversation

josharian
Copy link

It turns out that the binary size associated with strings
and other data that is never touched does not meaningfully
impact iOS memory usage.

Use the strings directly instead of gzipping them.
Use unsafe shenanigans to avoid copying them.
This saves about 100k of memory on startup.

It turns out that the binary size associated with strings
and other data that is never touched does not meaningfully
impact iOS memory usage.

Use the strings directly instead of gzipping them.
Use unsafe shenanigans to avoid copying them.
This saves about 100k of memory on startup.

Change-Id: I1a5ea92fe99289028d1b6fbbdea1a491c1c26066
@bradfitz
Copy link
Member

Makes sense (given what we now know), but what does this do to our binary size regardless?

@josharian
Copy link
Author

Adds 17040 bytes.

@bradfitz
Copy link
Member

ship it :)

@josharian josharian merged commit 024121b into tailscale.go1.17 Aug 19, 2021
@josharian josharian deleted the josh/x509 branch August 19, 2021 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants