4 ms·
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).
by rita3ko 8y ago
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).
- mwcampbell 8y agoThank you. Is that documented somewhere?
- rita3ko 8y agohttps://developers.cloudflare.com/workers/writing-workers/storing-data/ https://developers.cloudflare.com/workers/writing-workers/st... it’s mentioned in here
- mwcampbell 8y agoAh, OK. That doesn't mention that the 1 MB limit is after compression, though.
- kentonv 8y agoBeing post-compression is actually new and currently only applies if you use WASM, though we'll extend it to everyone soon (and document it).
- justinclift 8y agoHeh 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.
- kentonv 8y agoI believe the 2MB figure is before compression. After, it's 500k?
- justinclift 8y agoGood point. I've not tried compressing them personally, but people have indeed mentioned the 500k-after-compression thing before.