lljson.slencode() could tight encode ZERO_VECTORs and ZERO_ROTATIONs as "!v" and "!q"
planned
SuzannaLinn Resident
When using the tight encode option with
lljson.slencode()
:- ZERO_VECTORs could be "!v" instead of "!v,,"
- ZERO_ROTATIONs could be "!q" instead of "!q,,,1"
In the same way that NULL_KEYs are encoded as "!u".
Log In
H
Harold Linden
marked this post as
planned
Tapple Gao
If this was done, I'd prefer it strictly be as a size optimization for the two most common vectors and quaternions. I'd prefer that
lljson.sldecode
validate the comma count in every other case, following the principle of "fail earlier rather than later".