-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typed arrays #64
Comments
There is an optimization in VelocyPack for arrays in which all array members have the same size. This is the array types 0x02 to 0x05 (including). As mentioned, this only works when all array members have the same size, not the same type. It is not looking for member types, because members with the same type can still have different sizes, e.g. two strings (same type) can have different lengths (different sizes). That said, in VelocyPack two strings with different lengths will also be two different VelocyPack types, at least if the strings are longer than 127 bytes. The optimization will be pulled off automatically when it is detected that array members are homogenous in size. |
Thank you, for your reply. |
VelocyPack currently doesn't support this. |
Is it possible to support typed arrays (packed arrays). Each element of an array is of known type and is not preceded by the byte of its type. It will reduce the size of large homogeneous arrays.
It is implemented in cbor, see https://tools.ietf.org/html/draft-ietf-cbor-array-tags-00
The text was updated successfully, but these errors were encountered: