-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New: Patch for #570 #661
New: Patch for #570 #661
Conversation
This improves memory footprint of compilations using package individually. By only extracting the properties we need from webpack stats/result we can clean up a lot more memory every compile. This also uses seperate processes to compile each function which can clean up all the memory related to compilations and build multiple functions at same time.
Just needed to use this by doing Key thing (mentioned in the issue comment but not here) must remove use of |
Is there a way we can break down the work in the ToDos you have listed so we can get this hopefully reviewed and merged? My project needs this too. |
@pmcavoy89 The todo list is just a standard list that came with the PR template, the PR could just be merged as-is. |
Any chance to rebase against master and fix conflicts? |
@j0k3r sure, I can work on that |
@corollari I get that. I was wondering if I could take any of the items in the ToDo list off your plate to help get this merged in, if we need to that list. I know you had mentioned not having a ton of bandwidth. |
@pmcavoy89 Oh sorry, I didn't understand you. Yeah I'd really appreciate some help with:
|
What did you implement:
Recently I ran into the problem described in #299 and after testing several possible solutions (see this issue comment for a more detailed rundown of what I tried) I ended up using the fix implemented in #570. However, I ended up having some problems with the watch command used by serverless-offline. This PR implements a patch that fixes those issues and gets it working properly.
Closes #299
How did you implement it:
I made the script that is responsible for the watch command compatible with the rest of the changes made in the PR. Note that I didn't make the watch command use worker-farm for compilation when watching the changes, as it currently works fine without it.
How can we verify it:
Todos:
Is this ready for review?: Yes
Is it a breaking change?: NO for #570, YES for the current package