in reply to use vs. require

Yes, by switching from use to require and import, you are reducing start-up time and probably reducing memory utilization (unless those modules are getting required elsewhere) until that chunk of code actually gets run.

The only thing you are losing is that the import doesn't happen until run time so any imported subroutines are not predeclared before the code that uses them is compiled. The practical consequences of this are that

For most modules, those two consequence are pretty minor.

        - tye (but my friends call me "Tye")