Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Shrunk array takes more memory than original

by BrowserUk (Patriarch)
on Nov 10, 2015 at 13:04 UTC ( #1147354=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    @a = 1 .. 10000;;
    ...
    $#a = 5000;;
    print total_size \@a;;
    200376
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2023-12-06 17:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (31 votes). Check out past polls.

    Notices?