[proposal] Enable module cache during sails load#7161
[proposal] Enable module cache during sails load#7161zohareshed wants to merge 1 commit intobalderdashy:masterfrom
Conversation
|
Thanks for submitting this pull request, @zohareshed! We'll look at it ASAP. In the mean time, here are some ways you can help speed things along:
Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly. For help with questions about Sails, click here. |
|
This would be super helpful! So weird seeing Sails loading the same modules like 10 times during lifting. I see this has already been waiting for almost a month, and was even brought up on the Gitter with no response. What would it take for this to be addressed? |
|
@eashaw have you had any chance to look at this? |
|
I guess that's a "no". 😓 @DominusKelvin @eashaw Is there a standard process for getting something like this reviewed, beyond opening the PR here and posting on Gitter? |
|
Awesome! This give my team amazing cost reduction and solve a lot of problems we have while using sails! |
|
Wow this shortend sails lift time in a half! Can you sails team please approve it? |
|
This is something my team is waiting for a long time, we managed to fix it locally using local npm module, but you know how hard to maintain it! Please, make it as a part of the repo! 🙏 |
|
@eashaw @DominusKelvin |
|
Oh hey again, @zohareshed. Now that this pull request is reopened, it's on our radar. Please let us know if there's any new information we should be aware of! Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly. For help with questions about Sails, click here. |
|
@DominusKelvin @eashaw |
|
@zohareshed, Could you tell us about the issue you're facing with ram? |
|
@eashaw When sails lift, it requires all the Services multiple times. That uses A LOT of ram, and CPU. |
|
Hey @zohareshed can you share with us ram/cpu usage with this PR against latest version of Sails (in the case of your app)? |
|
@zohareshed apologies I just got to checking the progress on this PR. Can you please provide what @eashaw asked? |
The fact that sails doesn't pass the force argument to includeAll causes the several services to being required multiple times which impacts the perfomance.
Lifting time was 2 times quicker when I used the "force" attribute, in addition my app consumed 30% less RAM.