Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Memory efficient way to deal with really large arrays?

by LanX (Saint)
on Dec 13, 2020 at 00:28 UTC ( [id://11125085]=note: print w/replies, xml ) Need Help??


in reply to Memory efficient way to deal with really large arrays?

On a side note: We recently had a discussion about Judy arrays which claim to be far more memory efficient than hashes.

But without further details this is just a shot in the dark.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

  • Comment on Re: Memory efficient way to deal with really large arrays?

Replies are listed 'Best First'.
Re^2: Memory efficient way to deal with really large arrays?
by GrandFather (Saint) on Dec 13, 2020 at 02:31 UTC

    My impression is that Judy arrays are about addressing speed rather than space concerns with an emphasis on cache coherency as an optimisation technique. Probably not really applicable in a Perl context.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
      I don't have any first hand experience but as I said they claim to be far more memory efficient.

      Of course it also depends on the OPs usage, storing 500M Perl arrays holding just two integer entries will still exhaust his memory.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found