in reply to When does it make sense to preload modules when starting Starman?
Update - I thought I should add what I knew to be true (at some point) and isn't a secret, cPanel pays people a a lot of money to maintain a build infrastructure that uses B::C to generate a binary from Perl simply to improve start up time of their administrative daemon, cpservd. Basically, many MBs of initializations and module loads are shoved into a BEGIN{}. The binary is the state of the perl start up through BEGIN (like what you get by invoking perl -c). My point is that this is also an option - if you have a lot of stuff to preload, B::C can be used to get you into a state where start up actually picks up after BEGIN.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: When does it make sense to preload modules when starting Starman?
by karlgoethebier (Abbot) on Oct 30, 2021 at 08:25 UTC |