Limit to imported dependencies?

Three questions in one :

  1. Does anyone know what the actual (or theoretical) limit on the number of dependencies you can include in an app is?

  2. Does anyone know if the main app will start to slow down after X dependencies have been added? (and by extension, what the value of X is?)
    .
    I appreciate speed might depend on the size of the dependencies; mine are small, one job (usually CRUD) which rely on uplink for server code, so just 2 or 3 forms of client side code.

Finally,

  1. What’s the most, over 15, anyone has added to their main app?

Cheers :slight_smile:

Here are my guesses:

No hard limit in the number of dependencies, just the server memory. Considering that only a small percentage of the memory is used for the code, so you are never going to hit that limit.

Importing more stuff takes more time, but modules are compiled the first time they are imported, after that the import time is very low (unless some initialization code is executed during the import).

If you keep the server running, the imports only happen when a new instance starts, so the import time is actually zero most of the time.

2 Likes