znasir has asked for the wisdom of the Perl Monks concerning the following question:

Hi All,

I am using Strawberry Perl 5.24.0 and I am loading the modules using the "use". For example, use Net::FTP.

But module loading is taking a lot of time at compile time. For example, loading the Net::FTP module is taking around 2.44s in total (Below is the call trace which I got by using NYTProf). Can you please let me know that how can I improve the performance at compile time? Thanks!

Subroutines

Net::SSLeay::RAND_poll (xsub) (2.29s)

IO::Socket::SSL::BEGIN@20 (54.2ms)

Net::FTP::BEGIN@32 (42.1ms)

  • Comment on Module loading in Strawberry Perl 5.24.0 is slow

Replies are listed 'Best First'.
Re: Module loading in Strawberry Perl 5.24.0 is slow
by Corion (Patriarch) on Nov 11, 2016 at 16:16 UTC

    Looking at this:

    Net::SSLeay::RAND_poll (xsub) (2.29s)

    I assume that it is just Net::SSLeay taking that long to get an appropriate amount of entropy from your system. I don't know what to do to your system to increase the amount of entropy available to Net::SSLeay or its underlying C library.

      Any suggestions which I can try? Thanks!

        As you have not told us your operating system, I can only suggest that you consult with your system administrator on how to increase the entropy pool. Maybe Google has some suggestions for that.