programming is about algorithms.
fortunately, perl does a lot of work for you by offering
data structures like hashes for free. but you should still
have a clue what takes time and what not. you should know
about algorithms in general and also a bit about the
performance of the language you program in.
cpu cycles can matter faster than you think. if you program
an application framework that
uses modules, you can
program for maximum maintainability. if you program a
module which gets executed by a framework very often you
might want to benchmark a bit. think about DBI. imagine
it was written in pureperl and without any care for
performance - oh my god, database interaction
would be soo slow in perl. if no module author would care
about speed, perl itself would be slow because cpan is
part of the language somehow. i agree that a very small
difference doesn't usually matter because it might be just
a platform/version issue that changes in the next version,
but to know how to benchmark and to get a feeling about
efficiency does not hurt.
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.