Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Module loading in Strawberry Perl 5.24.0 is slow

by znasir (Novice)
on Nov 11, 2016 at 15:00 UTC ( [id://1175747]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1175747]
Approved by Discipulus
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-16 04:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found