in reply to Re^9: bit by overhead
in thread bit by overhead
But it doesn't seem to be working. Is this code assuming that the packed rows are stored together as a single scalar?sub to_cache { my( $ticker, $data ) = @_; $data_cache{$ticker} = pack "(A10FFFFL)*", map @$_, @$data; } sub from_cache { my $ticker = shift; return [ map[ unpack("A10FFFFL", $_) ], unpack '(A[A10FFFFL])*', $data_cache{$ticker} ]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: bit by overhead
by BrowserUk (Patriarch) on Jan 07, 2011 at 18:14 UTC |