In my code i last used text files to pass parameters and these parameters are finally processed and used in structs.
I was wondering if I could save these structs directly to reduce the overhead in the code. One method I found here was serialization. Is this a safe way to store data? Could it be that the data is no longer retrievable in higher versions of Julia, or is serialization a unified/unique algorithm?
You will be able to reliably read serialized files in newer Julia versions as long as you only save Base data types โ nothing from installed packages.
Well, package types will also be readable as long as they donโt change, but you cannot count on that. Itโs not generally possible to update Julia and keep the same Manifest with package versions.
If you save your own structs, then make sure struct definitions remain unchanged afterwards.