Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: write hash to disk after memory limit

by LanX (Saint)
on Mar 13, 2015 at 13:41 UTC ( [id://1119962]=note: print w/replies, xml ) Need Help??


in reply to Re^2: write hash to disk after memory limit
in thread write hash to disk after memory limit

As I said, better

> > organize the upper tier roughly according to the timeline of your process

No idea where $set comes from but $replicate could be such a top tier.

so $data[$set][$replicate]{$1}{$2} should have far less memory swapping problems (AFAIS).

(BTW better reserve uppercase var-names to perl buit-ins)

If this structure doesn't fit into your future plans, you most likely want to use a DB anyway.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)

PS: Je suis Charlie!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1119962]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2024-04-16 08:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found