Or is this another case of more than one way to do it.

You're bang on with that.

I've used FastCGI for a long time now. I spent half an hour with Apache::Perl and didn't find is as instantly accessable so I still use FastCGI.

I believe this is down to my laziness rather than anything else.

Performance increase is extremely impressive. As a testy-fudgy-see-how-I-can-thrash-Apache test, I wrote a quick CGI routine which was basically an XML server which listened for requests and could also call itself to recurse informtation.

Utterly brutal way of doing things, but heck - it was a laugh.

Running as a simple CGI, a request which called itself around 14 times (all in all, about 15 executions of the same CGI) came back with result in 10 seconds.

By simply changing it to run as a fast-cgi script, the results arrived after 0.3 seconds.

I am sure, if I were to investigate using Apache::Perl, that I could have the same results.

I think it's all down to whatever floats your boat really. Interesting to see how passionate some monks are about this subject though.

--
Gregor Anderson, Edinburgh. http://www.deletia.org/


In reply to Re: Fast CGI or mod_perl by hibernian
in thread Fast CGI or mod_perl by hakkr

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.