mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-11 15:37:27 +00:00
Clarified value reuse in FlexBuffers
Change-Id: Ib771bfa46ccdf38eff25be857b1b73f8b300c649
This commit is contained in:
@@ -98,10 +98,10 @@ allows a single type, and uses a bit less memory.
|
|||||||
`IndirectFloat` is an interesting feature that allows you to store values
|
`IndirectFloat` is an interesting feature that allows you to store values
|
||||||
by offset rather than inline. Though that doesn't make any visible change
|
by offset rather than inline. Though that doesn't make any visible change
|
||||||
to the user, the consequence is that large values (especially doubles or
|
to the user, the consequence is that large values (especially doubles or
|
||||||
64 bit ints) that occur more than once can be shared. Another use case is
|
64 bit ints) that occur more than once can be shared (see ReuseValue).
|
||||||
inside of vectors, where the largest element makes up the size of all elements
|
Another use case is inside of vectors, where the largest element makes
|
||||||
(e.g. a single double forces all elements to 64bit), so storing a lot of small
|
up the size of all elements (e.g. a single double forces all elements to
|
||||||
integers together with a double is more efficient if the double is indirect.
|
64bit), so storing a lot of small integers together with a double is more efficient if the double is indirect.
|
||||||
|
|
||||||
Accessing it:
|
Accessing it:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user