in reply to Re: Could we save the memory occupied by "undef" in an array?
in thread Could we save the memory occupied by "undef" in an array?
Thank you for your reply, the reason I would like to use array is as you said it is fast, however at the expense of eating memory. Also, for these undef elements, I may want to fill in something later.
So,what if I can only use array to implement, and Is there a method or package that can squash the memory occupied by "undef" in an array and return the the positions back when I try to fill something into the position that was occupied by a undef, sort of like autovivification?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Could we save the memory occupied by "undef" in an array?
by ikegami (Patriarch) on Nov 23, 2008 at 04:26 UTC | |
by TimToady (Parson) on Nov 24, 2008 at 17:30 UTC | |
by ikegami (Patriarch) on Nov 24, 2008 at 18:26 UTC | |
by matrixmadhan (Beadle) on Nov 23, 2008 at 08:24 UTC | |
by ikegami (Patriarch) on Nov 23, 2008 at 16:32 UTC | |
|
Re^3: Could we save the memory occupied by "undef" in an array?
by JavaFan (Canon) on Nov 23, 2008 at 12:19 UTC |