Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Module loading in Strawberry Perl 5.24.0 is slow

by znasir (Novice)
on Nov 11, 2016 at 15:00 UTC ( #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? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2022-06-27 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (88 votes). Check out past polls.

    Notices?