cmd/tsconnect: run wasm-opt on the generated wasm file

Saves about 1.4MB from the generated wasm file. The Brotli size is
basically unchanged (it's actually slightly larger, by 40K), suggesting
that most of the size delta is due to not inlining and other changes
that were easily compressible.

However, it still seems worthwhile to have a smaller final binary, to
reduce parse time and increase likelihood that we fit in the browser's
disk cache. Actual performance appears to be unchanged.

Updates #5142

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
This commit is contained in:
Mihai Parparita
2022-10-24 16:05:01 -07:00
committed by Mihai Parparita
parent 2a9ba28def
commit d60f7fe33f
3 changed files with 108 additions and 2 deletions

1
tool/binaryen.rev Normal file
View File

@@ -0,0 +1 @@
110