Re:You can now run WebAssembly on Cloudflare Workers
by mwcampbell on Monday October 01, 2018 @08:43PM
(#18117976)
What's the limit on code size? I imagine we'll have to be careful about bringing in large existing libraries.
[ Parent
| on HN ]
Re:You can now run WebAssembly on Cloudflare Workers
by rita3ko on Monday October 01, 2018 @08:47PM
(#18117986)
The limit on the code (the Worker + WASM), after compression is 1MB. Please reach out if you run into limitations with it (rita at cloudflare).
Re:You can now run WebAssembly on Cloudflare Workers
by justinclift on Tuesday October 02, 2018 @12:56AM
(#18118912)
Heh Heh Heh
Minimum size of wasm files generated by Go (so far) looks to be 2MB. That should improve over time.
Go wasm is currently hard coded to target browser environments too. Another thing which should improve down the track.
Re:You can now run WebAssembly on Cloudflare Workers
by kentonv on Tuesday October 02, 2018 @01:18AM
(#18119001)
I believe the 2MB figure is before compression. After, it's 500k?
Re:You can now run WebAssembly on Cloudflare Workers
by justinclift on Tuesday October 02, 2018 @03:43AM
(#18119517)
Good point. I've not tried compressing them personally, but people have indeed mentioned the 500k-after-compression thing before.
Re:You can now run WebAssembly on Cloudflare Workers
by mwcampbell on Monday October 01, 2018 @08:52PM
(#18118007)
Thank you. Is that documented somewhere?
Re:You can now run WebAssembly on Cloudflare Workers
by rita3ko on Monday October 01, 2018 @09:03PM
(#18118050)
https://developers.cloudflare.com/workers/writing-workers/st... it’s mentioned in here
Re:You can now run WebAssembly on Cloudflare Workers
by mwcampbell on Monday October 01, 2018 @09:36PM
(#18118170)
Ah, OK. That doesn't mention that the 1 MB limit is after compression, though.