in reply to Loading one big file is slower than loading 56 different small files?
I cannot reproduce your findings. Below, The first run does 56 simple subs in a single file. The second does those same 56 simple subs each in a separate file. The results pretty much what you'd expect.
c:\test>do-t-main.pl Took 0.008248 seconds c:\test>do-t-main.pl Took 0.101460 seconds
The main thing is that for perl to take 5 whole seconds to load and parse 1 file containing 56 subs is quite extraordinary. They are either humongous subs, or perhaps they are causing some kind of exception handling code to be invoked that slows everything up?
|
|---|