You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently @antonydellavecchia implemented optimizations that dramatically reduced the overhead for serializing e.g. Vector{Int}.
We should push this further to extend to other types of homogeneous vectors. For example, here I am serializing a vector of finite field elements (FFEs), all over the same finite field.
julia> F =GF(911)
Galois field with characteristic 911
julia>save("ffe.json", F.([0,1,2,3]))
julia>save("intvec.json", [0,1,2,3]) # for comparison
This is the resulting ffe.json (after pretty printing and with the _ns entry removed):
So really, what we are storing here is a Vector{Int16} plus the parent plus the information that this parent should be used to re-create the elements of the vector.
The text was updated successfully, but these errors were encountered:
Recently @antonydellavecchia implemented optimizations that dramatically reduced the overhead for serializing e.g.
Vector{Int}
.We should push this further to extend to other types of homogeneous vectors. For example, here I am serializing a vector of finite field elements (FFEs), all over the same finite field.
This is the resulting
ffe.json
(after pretty printing and with the_ns
entry removed):For references, this is
intvec.json
(I am leaving out the namespace bit)Some observations:
id
for them / should not consider them for backrefsHere is how it could look like (I did not check whether:
And why stop there, we can special case and say "FFEs essentially just store an integer", and compact it further:
So really, what we are storing here is a
Vector{Int16}
plus the parent plus the information that this parent should be used to re-create the elements of the vector.The text was updated successfully, but these errors were encountered: