You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a complex application with a huge dependency graph. On startup, when all controllers are initialized at once using inversify-express-utils (container.getAll for controllers) we noticed that the startup takes upward of 5 minutes, with more than 6 GB of memory taken for the plan graph. Most of our bindings are Singleton.
Expected Behavior
container.getAll() should be fast
Current Behavior
container.getAll() takes > 5 minutes, a huge amount of RAM
Possible Solution
in planner.ts, we do not need to create childRequests for singleton Bindings multiple times, as there will be only instance of the object
Will be updating the issue with a pull request
Steps to Reproduce (for bugs)
Application with a large dependency graph
container.get() an object which is dependent on the full dependency graph
Context
Speeds up the startup of our application, and reduces startup memory utilization from ~6.5 GB to 600MB
We have a complex application with a huge dependency graph. On startup, when all controllers are initialized at once using inversify-express-utils (container.getAll for controllers) we noticed that the startup takes upward of 5 minutes, with more than 6 GB of memory taken for the plan graph. Most of our bindings are Singleton.
Expected Behavior
container.getAll() should be fast
Current Behavior
container.getAll() takes > 5 minutes, a huge amount of RAM
Possible Solution
in planner.ts, we do not need to create childRequests for singleton Bindings multiple times, as there will be only instance of the object
Will be updating the issue with a pull request
Steps to Reproduce (for bugs)
Context
Speeds up the startup of our application, and reduces startup memory utilization from ~6.5 GB to 600MB
Your Environment
node v11.13.0
inversify 5.0.1
inversify-express-utils 6.3.2
express 4.16.2
Private repo
Stack trace
None
The text was updated successfully, but these errors were encountered: