Ok I'll show you the structure:

The attention is on 'COMB' key that reference the hash with 180000 keys of about 20-25 chr. The program must increase all the "lower level" key {Rit} for each "while" cicle that read line by line from the previous discussed Files (9000+ lines).

I know its a huge work, but who has an idea on how to make it faster? at this time it processes the 180000 values for 50 times (~9 million) in about 12 secs (the whole work could take about 2160 secs)

Thank you again to all of you!

%DB_STATS = ( 'COMB' => { '1,2,4,6,9,11,13,15,16,17' => { 'Rit' => 0, 'Usc' => 0 }, '1,2,4,6,9,11,13,15,16,18' => { 'Rit' => 0, 'Usc' => 0 }, '1,2,4,6,9,11,13,15,16,19' => { 'Rit' => 0, 'Usc' => 0 }, 'And 180_000 more Keys...' => { 'Rit' => 0, 'Usc' => 0 }, }, 'Other keys NOT of our interest', ..., ..., );


In reply to About Data Structure and elaboration time by NewMonkMark
in thread Apparently strange beahavior that blocks at Filehandle reading by NewMonkMark

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.