Back

Functions size after upgrade to v1.4.x

  • 1
  • Functions
ddenev
12 Sep, 2023, 10:09

I noticed that the deployments of my functions went from ~12K (v1.3.x) to ~600K on v1.4.x. What is the reason for that increase in size?

TL;DR
After upgrading to v1.4.x, users noticed a significant increase in the size of their functions. This is because the size now includes the dependencies. Previously, the size only reflected the size of the source code. The increase in size is due to changes in how dependencies are handled. For example, one user mentioned that their function went from 200k to 2.7MB, despite having the same code. Another user mentioned that their function deployments went from ~12K to ~600K on v1.4.x. The reason for this increase in size is still unclear.
Binyamin
12 Sep, 2023, 13:29

What language the function is written with?

hamed
12 Sep, 2023, 21:31

Mine went from 200k to 2.7MB, even tho it's still has the same code.

Binyamin
12 Sep, 2023, 21:33

What language?

hamed
12 Sep, 2023, 21:34

Dart 2.17

Drake
13 Sep, 2023, 00:30

@Meldiron do you know why this is happening? I've also noticed this:

ddenev
14 Sep, 2023, 10:51

JS for Node v18

Drake
15 Sep, 2023, 19:04

sooo i think the size before 1.4 was the size of the source code, but now it's the size of the build (which contains all the dependencies)

hamed
15 Sep, 2023, 23:09

Hmm, so those dependencies were handled differently before 1.4?

Drake
15 Sep, 2023, 23:38

no they weren't. it's just the size wasn't updated with the value after pulling the dependencies and building the function

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more