Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Catching Cheaters and Saving Memory

by Fletch (Bishop)
on Oct 12, 2006 at 20:16 UTC ( [id://577950]=note: print w/replies, xml ) Need Help??


in reply to Catching Cheaters and Saving Memory

Seconding the "use a real DB" recommendations. Another thing to consider is that since you're basically storing a single bit (true/false) you could use vec and store the data packed that way (with suitable convenience wrappers to extract or set the value for a given thread). That'd get you 8 threads / byte, and with a lucky data set you might could use gzip to compress things for longer term storage (i.e. if you've got long contiguous runs of trues or falses it'll shrink pretty well). I once did something similar where I had 10,000 bits that stored in under half a K on disk.

  • Comment on Re: Catching Cheaters and Saving Memory

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2025-06-24 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.