On Tue, Jun 22, 2010 at 3:10 PM, P Kishor <[email protected]> wrote:
> On Tue, Jun 22, 2010 at 3:01 PM, Craig DeForest > <[email protected]> wrote: > > Looks like you're storing integer data in a double-precision > floating-point > > PDL. (default data type is 'double'). Try using type declarations in > your > > constructors -- e.g. "ones(short, $x)->dummy * pdl(short, @dm)" > > > > ahhh... > > -rw-r--r-- 1 punkish punkish 1289616 Jun 22 14:42 bin.dat > -rw-r--r-- 1 punkish punkish 1280000 Jun 22 15:07 pdl.dat > -rw-r--r-- 1 punkish punkish 14 Jun 22 15:07 pdl.dat.hdr > > > So much better. So, a modest technical question -- is a piddle, > internally, just like a packed value with some magic dust sprinkled on > it? > Yes. Actually quite a bit of magic dust, and some lint. You shouldn't go around creating thousands of 5-element piddles because they would probably be more efficiently stored as perl arrays. However, if you cat'd those piddles together, then you'd be in business. In terms of storage, however, the stuff stored to the disk is just the data. David -- Sent via my carrier pigeon.
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
