Is splitting the Julia code into smaller scripts impacting performance?

It should have a negligible impact (compared with simply pasting all of the code into a single file).

However, if you are writing re-usable code, I would strongly encourage you to think about putting the re-usable pieces into modules/packages, rather than thinking of it as “scripts”. (And write callable functions, not runnable scripts.) See also Best practise: organising code in Julia - #2 by stevengj

3 Likes