So if I use a same module a multiple time in a script ( ie main calls module A, module A calls B and C but C also calls B and A ) the only memory I waste is by exporting the subs in each namespace ?
Comment on Re: Re: Re: Re: Improving memory performance
That's correct. The module is only compiled once, but the imports happen in each namespace where the script is used, and they take up space. You can always simply avoid importing by calling a module with an empty import list, like this: