in reply to Re^2: large perl module
in thread large perl module

See Sharing Memory, and in particular Preloading Perl Modules at Server Startup in the mod_perl docs  (even though this is the 1.0 docs, most of the discussion still applies).

Replies are listed 'Best First'.
Re^4: large perl module
by CountZero (Bishop) on Mar 05, 2010 at 06:53 UTC
    most of the discussion still applies
    But only in a very general sense.

    Better look at the version 2.2 docs and more specifically the comments on the Postconfig Handler. But even if you load the module that early in the server startup-cycle, there is no guarantee that the data will stay shared for the lifetime of the server.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      But even if you load the module that early in the server startup-cycle, there is no guarantee that the data will stay shared for the lifetime of the server.

      Exactly what I tried to point out in my initial reply.