When and why using serialization?


#1

Hello.

Quite often I see at julia-discourse threads speaking about “serialization” on Julia.
When and why do you use serialization? Just to save objects? or do you use it to share data between threads or something more obscure?

https://docs.julialang.org/en/v1/stdlib/Serialization/#Serialization-1


#2

Think of this as a trade-off:

        ^
        | serialization
        |
support | 
for     |
native  |           JLD2, BSON
types   |                
        |              
        |                   Feather
        |                      HDF5
        |                         CSV
        +----------------------------->
             load data saved long ago

#3

Then you use it just as a mean to save data on disk?


#4

Yes. But, as you noted, there are other possible uses.