In general, your object-oriented code will be slower than
non-OO code. But that's not the whole story, because the
slowdown is not very significant, and is far outweighed
by things like disk access, database access, etc. So on
the whole, it would make things easier for you, probably,
to "go OO", at least conceptually, then I'd say go for it.
You also asked:
> Assuming I can't get SQL, would I see a performance
> increase if (e.g.) I moved to DBM from the
> tab-delimited flat files?
Yes, so long as you use them correctly. By that I mean, you
need to structure your data in such a way--namely, key-value
pairs--that the benefits of using a DBM will be displayed.
For doing lookups on data, getting that data out of a DBM,
where you have some unique key into the DBM, is much faster
than searching through each line in a text file, trying to
find the data. But you have to get your data set up in such
a way that this is the case.
And yes, I would recommend using Berkeley DB. Get version 2,
because I've heard about memory leaks in 1.
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.