in reply to Re: Splitting large module
in thread Splitting large module

I think that all of the USE directives will be resolved at compile time and that this would not account for the perceived difference in performance.

Replies are listed 'Best First'.
Re^3: Splitting large module
by Corion (Patriarch) on Jul 11, 2018 at 17:45 UTC

    There is no real distinction in Perl between "compile time" and "runtime", as Perl needs to load all files each time a program is run.

    I can very well imagine a high-latency (or flakey) network connection (maybe NFS) that makes loading files quite slow. This would slow down program startup at least linearly for each file that needs to be opened and read.