Thanks for all your help and patience. I think I know what set of things has been going on, and now know where the time is going.

All of you will, I'm sure, be shocked, just shocked, to learn that inadequately controlled benchmarking is the cause of my confusion. I was using files in a couple of different directories to test against, and the YAML configuration file in one of the directories is 5k bytes, and in the other is 35k bytes. I happen to have switched between them in just the right pattern to make CGI and mod_perl versions perform about the same overall.

Some Time::HiRes based internal profiling is what finally allowed me to nail it down. I will, however, point out that I'd done some of that for my initial message, the previous thread where I first asked about this. (Sorry, I'm getting a bit overloaded on suggestions to do things I've already said I've done. But doing some *more* of it did resolve the problem, so maybe I shouldn't complain about that particular case anyway!)

There's no longer a mystery about where the time goes. However, now that I really understand what's going on, the total amount of time taken is still pretty unsatisfactory. Which leads to my next thread, Big config file reading, or cross-process caching mechanism


In reply to Re: Re: CGI to Apache::Registry, or to mod_perl by dd-b
in thread CGI to Apache::Registry, or to mod_perl by dd-b

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.