Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: why does this array take up so much memory?

by Courage (Parson)
on Jan 26, 2003 at 22:46 UTC ( [id://230065]=note: print w/replies, xml ) Need Help??


in reply to why does this array take up so much memory?

There are several ways to force Perl use less memory.
  1. using Inline::C create C's subroutine that implements your two-dimensional array
  2. use one single scalar value and simulate your array by taking proper substr
  3. If your array is really all 1-s with few exceptions, just store such exceptions in another array and write a simple sub that simulates your 2D array.
May be some more.

Courage, the Cowardly Dog

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-25 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found