Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: array overhead

by roboticus (Chancellor)
on Jan 05, 2011 at 21:42 UTC ( [id://880683]=note: print w/replies, xml ) Need Help??


in reply to array overhead

You didn't provide much information, so it's hard to offer specific tips. You can look at pack and unpack to compress your data into a single scalar, thus removing the array overhead, and possibly a good deal of the scalar overhead for the individual entries as well. For example, if your six values are integers, then your data size would compress to a packed string of 48 bytes and a scalar. Then you'll trade space for a bit of speed (the pack/unpack time during access).

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2024-04-19 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found