in reply to Does module size matter under mod_perl?

In principle, yes, module size does have some marginal impact on performance, if only due to affecting the amount of time it takes to read the file from disk.

In practice, if the amount of difference it makes is significant to your application, then Perl is the wrong language for you to write that application in. You'll get much bigger gains by switching to a higher-performance language than you will by worrying about module sizes in Perl.

  • Comment on Re: Does module size matter under mod_perl?

Replies are listed 'Best First'.
Re^2: Does module size matter under mod_perl?
by ikegami (Patriarch) on Jul 05, 2014 at 19:46 UTC
    In mod_perl, you'd load the module once when the web server is loaded. How long it takes to load is completely unimportant.
      Yes, the difference is completely unimportant, if there's even a measurable difference at all. Which was my point.

        And you missed mine.

        You said it might take a small amount of time to load. Nothing is loaded.

        You said the file is read from disk. The file is not accessed.

        You said there is something to measure. There is nothing to measure as the module should already have been loaded when mod_perl was loaded, not when a request comes in.

        If any of what you said was true, then the difference would be measurable, and it could be sizeable.