Can the 256KB file size limit be increased to 1MB? #425
thosakwe
started this conversation in
Feedback: General Improvements
Replies: 1 comment 3 replies
-
We have done some significant work on improving the Rust binary size, especially with shopify_functions 0.8.0. Let me know if you are still encountering issues with the file size limit in Rust. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Shopify Team,
Shopify Functions is fantastic, but, I've hit a roadblock that I believe is affecting not just me but several other developers out there.
The 256KB file size limit for Shopify Functions is a bit tight, especially when working with Rust.
Public apps often have to cover a wide variety of use cases and configurations. This presents a challenge, because if you have many configuration options, the
serde
crate will generate a TON of monomorphized code, which bloats the executable size.For example, see this previous discussion about the 11M instruction count limit. My TypeScript Function keeps hitting the instruction count limit, but the file size limit is preventing me from releasing a more efficient Rust version that executes fewer instructions.
My suggestion: how about boosting the file size limit to
1 MB
?This should give developers more breathing room to create robust Shopify Functions without constantly worrying about fitting into a tight space.
I understand the need for limitations, but the current constraints seem to hinder the potential of what Shopify Functions can achieve.
I'm curious to know if others in the community share similar experiences or if there are alternative suggestions.
Looking forward to your thoughts and hopefully an expanded file size limit soon. 🙌
Best,
Tobe
Beta Was this translation helpful? Give feedback.
All reactions