Guarav:

For the most part, I'd imagine that your website would be limited not by the processing speed of perl, but of the time spent in general-purpose activities (reading/writing to sockets, querying database, etc.). I've found that today's computers are *so fast* that CPU is rarely the bottleneck in my applications. It's nearly always I/O speed or database latency.

So long as you choose good algorithms, you should be fine.

Also, I wouldn't worry a whole lot about speed at first. Instead, I'd worry about getting it running nicely. (Sounds like you're just about there now.) Then use a tool to generate a good heavy load on the system. Then examine system usage (I/O time, system time, etc.) and profile the code to see where your hotspots are. Then fix those hotspots. It's often said that 90% of the time is spent in 10% of the code--and I believe it. I'd code in whatever I like, and if it turns out that you *have* a CPU issue that you need to address...then find it and choose a different algorithm, and if that doesn't work, then code that chunk up in C.

One last thing: I worked on a project a few years back, and we spent buckets of cash on getting *BIG* systems, optimized the software to work as efficiently as possible. I don't know how many million$ were spent on the system. But I wrote the financial reports, and I *do* know how many customers it had before it folded. The high point was 26. Yep ... 26 people paying $20/month to use our system. At least they didn't have to wait on the system!

...roboticus


In reply to Re: Perl website by roboticus
in thread Perl website by Anonymous Monk

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.