On Sun, Oct 29, 2017 at 7:58 AM Dima Pasechnik <dimp...@gmail.com> wrote:

> The conventional wisdom is to avoid pickles in favour of JSON (the latter
> is a platform-independent human-parseable text, the former is some
> Python-only binary stuff).


Whether this is a good idea depends a lot on the domain.  E.g., try storing
a 10000x10000 matrix over GF(2) in JSON versus as a sickle in Sage (using
the save command).  To use JSON, you'll have to start by writing your own
custom code to export (and import) to JSON, and whatever format you chose
it is going to be 100s of times less compact and slower than the fast
custom code we wrote for pickling.

A huge amount of work has been put into making various things (e.g.,
matrices) pickle and unpickle very efficiently (and stably over versions).
Basically 0 work has gone into converting sage objects to/from JSON.

 -- William


>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- William Stein

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to