Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Speed up perl by loading modules into memory?

$
0
0
Hi,

I'm trying to get my perl scripts speeds up with nginx. We include quite a few perl modules - so I'm wondering if we can load them into memory, to speed up script requests. Here is a post I've started on Stack Overflow:

http://stackoverflow.com/questions/33316610/loading-perl-modules-into-memory-for-nginx-to-make-faster/33343357#33343357

Now, while I don't get errors on rebooting nginx, I really don't see that much of a difference in load times.

Before: 896ms "waiting"
After: 845ms "waiting"

Am I mis understanding how the perl_require works? Basically, I want to emulate what you get with mod_perl on Apache (where it loads the modules into memory)

Thanks

Andy

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>