Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Hashing Memory Usage

by awkmonk (Monk)
on Jul 12, 2006 at 15:59 UTC ( #560728=note: print w/ replies, xml ) Need Help??


in reply to Re: Hashing Memory Usage
in thread Hashing Memory Usage

Ah, good point. This msaaivley cut down version still produces the same bloat.

Rewriting the code is an option, but not one I'd like to go into unless there is no other hope.

#!/usr/bin/perl -w use strict; my %a = (); my $res = `ps v $$`; print "$res\n"; for my $line ( 1 .. 19000 ){ for ( "AA" .. "DZ" ){ $a{$line}{"$_$line"} = $line; } } $res = `ps v $$`; print "$res\n"; exit 0;

'I think the problem lies in the fact that your data doesn't fit my program'.


Comment on Re^2: Hashing Memory Usage
Download Code
Re^3: Hashing Memory Usage
by derby (Abbot) on Jul 12, 2006 at 16:19 UTC

    Maybe with your cut down script, Devel::Size could provide some insight (at least give you a diff on the two architectures between the structure size and the structure+data size).

    -derby

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2014-09-23 03:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls