Do we need to copy all files before zipping? #541
jeromeheissler
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've worked locally inside the zip function to trace the duration of each step of the pipe:
serverless-esbuild/src/utils.ts
Lines 91 to 103 in 7dc3b64
With a zip concurrency to 1 on my Macbook Pro 16" 2019, the copy step duration is between 2s and 3s, and the zip step between 3 and 4s :
Or the bestzip source can take in parameter a list of files directly. Instead of making this:
We can reference all files directly:
Maybe we can reduce /2 the zipping time by removing copy step.
I don't know if there is an impact on native zip
Beta Was this translation helpful? Give feedback.
All reactions