Sign In Register

How can we help you today?

Start a new topic
Answered

Module loading performance

Would it cause performance problems if I put most of the code in a module instead spreading it in multiple modules? I find it easier to manage dependencies this way, just do require('MyGame') and be done with it instead of using multiple requires; It's hard to keep track of what modules I need.


Best Answer

Edwin,


The only thing I can think of that would slow performance is that it would have to load the entire module every time you need it instead of smaller chunks. This will eventually affect performance, but it's hard to say just how much until we see it happen.


Otherwise, I don't think it will cause any problems for us.


Shane

1 Comment

Answer

Edwin,


The only thing I can think of that would slow performance is that it would have to load the entire module every time you need it instead of smaller chunks. This will eventually affect performance, but it's hard to say just how much until we see it happen.


Otherwise, I don't think it will cause any problems for us.


Shane

Login to post a comment