Modules and Storage

When modules are used multiple times throughout the program, are they downloaded only once and just call upon the source each use or does it download it each time it is used?

I am my team’s programmer and I want to make the program as thorough as possible (have multiple autonomouses for each starting position to deal with opponent’s autonomous, operator controls be as automated as possible, and have the programming challenge autonomous). One thing I have decided to do to simplify programming is to make modules for everything. Some of which from last year were fairly large for what tasks they completed. One of which was over 100 lines of code. This could cause the code to become quite large if the modules are saved every instance.

I know my methods may not be the most size friendly but I would still like to know if this would work. I know that not using modules and just the necessary code would save a lot of room, but I would really like to use modules since they allow easy customization.

Thank you.

When you say modules do you mean functions? If so making functions vs writing new code offers no size advantage. It is good practice to use functions to streamline your code. If you find an error you can fix it in one place vs checking all of your code. On the other hand if you make a mistake in a function it will effect everything that uses the function.