--
Just my 2 cents:
1. DB access - Sure, the DB stuff is usually slower.
What I try to do is minimize DB work and let Perl handle
as much as possible to gain the best performance

2. Modules - As mentioned before regarding Apache and
loaded modules, depends. But as a rule of thumb look
at what the module does for you - usually if you're not
comfortable/experienced enough to write your own module
it's worth using the existing mod even with performance
hit. (The assumption here is that if you do not know
Perl or the problem area well enough to
write a module for your problem, then it's safe
to say the module author may have handled something
you would have missed.)

I'm not trolling here, just saying that if you don't
know it well enough yet trust the module developer and
learn from module code. I've learned a lot
this way, and not just in Perl either.

3. No useful comment.

4. Typically, based on what I've heard, seen
written, and benchmarked myself, OO code TYPICALLY
is slower BUT there are cases where OO is faster
on a module-per-module basis. Depends how it was
written, really.

Plus, is it faster to write code in OO or Non-OO?
I'm a C/Perl guy so for me it's non-OO typically but
depends on problem faced and your mindset (How do you
logically break down the problem?)

Since I was mostly a C guy, it's hard to unlearn
the procedural methods and see things as their
*usually* natural Objects and methods

5. SSI - Is it faster to buy a pre-packaged lunch or
to buy a roll and put cold cuts, condiment, etc. on it?

Static HTML is pre-packaged, canned, and dynamic is your "custom" sandwich.

But sometimes it's better to wait the extra time
so you have your sandwich
"Just Right" (i.e., worth the extra process time)

Hope my rant helps, I know I feel better already.
-felonious

In reply to Re: Perl CGI and SSI speed by feloniousMonk
in thread Perl CGI and SSI speed by legLess

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.