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