The
solution proposed by
Fletch is what I would do, outside of moving to the object-oriented approach.
If you're talking absolute speed, then maybe you'd want to stay away from an object-oriented solution, but I think in practical terms, especially considering the huge DB overhead, the measurable difference in terms of performance is going to be 1% or less, which is to say, external variables will have more of an effect (i.e. CPU load, network traffic, etc.).
What I mean to suggest is that just because an object oriented technique is "slower" doesn't mean that it must be avoided. "Fastest possible" is certainly not meant to be taken at its most extreme interpretation, because if that were the case, you can forget about using Perl at all.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.