Open ben-krieger opened 1 month ago
$ GOOS=js GOARCH=wasm go build -ldflags '-s -w' -o go-rv.wasm ./examples/wasm/main.go && du -h go-rv.wasm 12M go-rv.wasm $ tinygo build -target wasm -no-debug -gc leaking -o tinygo-rv.wasm ./examples/wasm/main.go && du -h tinygo-rv.wasm 1.5M tinygo-rv.wasm
~88% size reduction before compression
Also, updated sqlite module to not use transactions, because Cloudflare D1 does not support them.
sqlite
Tracking upstream PRs that need to be merged and released first:
Other tasks:
(*http.Request).PathValue
syumai/workers
examples/go.mod
.
./cbor
./http
rv
[]byte{0x00}
~88% size reduction before compression
Also, updated
sqlite
module to not use transactions, because Cloudflare D1 does not support them.Tracking upstream PRs that need to be merged and released first:
Other tasks:
(*http.Request).PathValue
in non-TinyGo codesyumai/workers
fork replace statement inexamples/go.mod
.
,./cbor
, and./http
rv
to[]byte{0x00}