Here's my practical experience from work. Our scripts
usually will glob in large amounts of data, and sort
through them via hashtables and such. Such code frequently
consumes 100% of the CPU for long periods of time, which
indicates that we may be reading in too much data.
I have found, on our 500- and 700-mhz machines, that
50 megabytes of data is too much for hashtables. The
operating system may start churning all that data to
a disk cache, in which case you may be in for loooong
processing times. Or, for truly vast amounts of data,
perhaps the program will simply die due to an Out Of
Memory Error.
On the other hand it appears that 1 megabyte of data is
not too bad for us. It seems to go into hashtables ok.
Of course, we have 256 meg of RAM, so 1 meg here and
there is "no big deal".
Your mileage may differ.
rje
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.