[Answer]-In a Django web application, would large files or many unnecessary import statements slow down my server?

1πŸ‘

βœ…

No, code speed is not affected by the size of your modules.

Additional imports only affect the memory footprint (a little more memory is needed to hold the extra code objects) and startup speed (more files are loaded from disk when your Django server starts).

However, this doesn’t really affect code running speeds; Python does not have to do extra work to run your code.

0πŸ‘

Views load only one time, at the moment of start your code

πŸ‘€cehmja

Leave a comment