WRAPRAWOPT
gts
encoder
Packs a Geo Time Series™ (or a list thereof) or a GTS Encoder instance into a BYTES. The packing performed by WRAPRAWOPT
differs from that of WRAPRAW
only by the fact that WRAPRAWOPT
attempts to optimize the representation of DOUBLE values for Geo Time Series™ and increases the compression aggressiveness for GTS Encoders.
WRAPRAWOPT is available since version 1.2.3.
See also
Signatures
Examples
//5000 random booleans.
NEWGTS
1 5000 <% NaN NaN NaN RAND 0.5 < ADDVALUE %> FOR 'gts' STORE
$gts WRAPRAW SIZE //around 98k
$gts WRAPRAWOPT SIZE //a little less
Examples
//5000 random booleans.
gts = NEWGTS()
FOR(1, 5000, (i) => { gts = ADDVALUE(gts, i, NaN, NaN, NaN, RAND() < 0.5)})
return WRAPRAWOPT(gts)