Skip to content
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

serialization #18

Open
xgdgsc opened this issue Dec 21, 2019 · 3 comments
Open

serialization #18

xgdgsc opened this issue Dec 21, 2019 · 3 comments

Comments

@xgdgsc
Copy link

xgdgsc commented Dec 21, 2019

What is the preffered way of serializing TimeDate to/from disk binary files? Either julia only format or a general format would be OK for me. For now I use string, would there be a format for fast load/saving?

@JeffreySarnoff
Copy link
Owner

String is best as there is nothing more portable across Julia versions.
I expect the core language will provide something eventually, or a package like BSON.jl will become more generally applicable -- sometime.

@JeffreySarnoff
Copy link
Owner

Maybe I could provide a special Serialization.serialize and Serialization.deserialize, ultimately though, it may not be much faster than the string form -- and it would be more brittle. I am considering this.

@xgdgsc
Copy link
Author

xgdgsc commented Dec 28, 2019

Thanks. String is fine for me. I convert it to tpapp/StrFs.jl: Julia packages for strings with fixed maximum number of bytes. and mmap on disk.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants