Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What's the limit on code size? I imagine we'll have to be careful about bringing in large existing libraries.


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).


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.


I believe the 2MB figure is before compression. After, it's 500k?


Good point. I've not tried compressing them personally, but people have indeed mentioned the 500k-after-compression thing before.


Thank you. Is that documented somewhere?



Ah, OK. That doesn't mention that the 1 MB limit is after compression, though.


Being post-compression is actually new and currently only applies if you use WASM, though we'll extend it to everyone soon (and document it).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: