in reply to Re^5: Unpacking and converting
in thread Unpacking and converting
My assumption is that the data comes initially from text; a file or other external source.
Thus, despite that it is numeric data, when split to an array, each SV in the array is an SvPV with the numbers stored as ascii strings.
But, if he runs over the array forcing the ascii to be stored in the IV or NV slot, then when Storable packs it, it only packs the IV/NV and not the PV, and so the Storeable image size is reduced.
Of course, if the size of the transmission is really significant, then transmitting the original source text would probably be more efficient. Especially if he zipped it first.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Unpacking and converting
by ikegami (Patriarch) on Feb 16, 2011 at 17:35 UTC | |
by dwalin (Monk) on Feb 18, 2011 at 18:56 UTC |