in reply to use Module - to exclude or not to exclude...
A reference in your package will be faster to run, since it doesn't need to look in a different STASH to find the reference, but this is again not soo much faster.
I recomend to always import what you need, and to not use the full path until the module package. But if you want to exclude some automatically imported stuffs, this will be good only if what you are excluding is an amount bigger than what you really need. Soo, if you want to exclude only 2 or 5 methods, this is not much better than just let to import the defaults. But if you want only 2 references, and the module exports by default 20 references, well, will be good to only get the 2 that you need.
But note that this will make differences only when you load the module, soo, think always if the work pay enough to be done. In other words, when talking about programms, you should spend time optimizing only when you really win memory or speed. Soo, keep your eyes in the codes that are executed a lot, like loops, or that takes more time, like read an IO.
Good luck.
Graciliano M. P.
"Creativity is the expression of the liberty".
|
|---|