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
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |