Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re^4: Best way to allocate some memory first

by LanX (Sage)
on Dec 03, 2021 at 18:38 UTC ( #11139370=note: print w/replies, xml ) Need Help??

in reply to Re^3: Best way to allocate some memory first
in thread Best way to allocate some memory first

Thanks, but honestly I don't plan looking into the details.

I second what Schwern said in the SO discussion:

(Only try this if ) You profiled and found a problem.

It would need MANY "40KB arrays" to make this count on a modern machine.

Whatever a "40KB array" means, arrays hold refs to other types, it's totally unclear what is meant here.

This smells like a problem which is best solved with packing into a 40 KB string.

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

  • Comment on Re^4: Best way to allocate some memory first

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-05-16 18:44 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (63 votes). Check out past polls.