Reducing Tailscale’s binary size on macOS
tailscale.com
Reducing Tailscale’s binary size on macOS
1–10 of 34 posts
Re: Reducing Tailscale’s binary size on macOS
#2Re: Reducing Tailscale’s binary size on macOS
#3Generally on Apple platforms the move here would be putting the shared binary into a dynamic .framework rather then trying to eliminate the shared dependency. Is this a limitation of authoring it in Go that it has to be entirely static?
Re: Reducing Tailscale’s binary size on macOS
#4Generally on Apple platforms the move here would be putting the shared binary into a dynamic .framework rather then trying to eliminate the shared dependency. Is this a limitation of authoring it in Go that it has to be entirely static?
The solution we ended up with was partially a matter of the minimum change to fix the issue, and partly because we have a lot of platforms to cover with a small team, so the fewer platform-specific concepts we have (frameworks in this case), the easier it is to maintain.
Re: Reducing Tailscale’s binary size on macOS
#5Re: Reducing Tailscale’s binary size on macOS
#6Generally on Apple platforms the move here would be putting the shared binary into a dynamic .framework rather then trying to eliminate the shared dependency. Is this a limitation of authoring it in Go that it has to be entirely static?
Re: Reducing Tailscale’s binary size on macOS
#711452 -rwxr-xr-x 1 root root 11.2M Sep 1 2021 /usr/sbin/tailscaled
7612 -rwxr-xr-x 1 root root 7.4M Sep 1 2021 /usr/sbin/tailscale
I love tailscale, but it forces me to use usb sticks on most of my openwrt routers.
Re: Reducing Tailscale’s binary size on macOS
#8@mihaip, have you been able to measure any changes before/after?
Re: Reducing Tailscale’s binary size on macOS
#9Generally on Apple platforms the move here would be putting the shared binary into a dynamic .framework rather then trying to eliminate the shared dependency. Is this a limitation of authoring it in Go that it has to be entirely static?
As a user I’d prefer faster startup over shaving off a couple MB tbh.