On Saturday, September 16, 2017 at 10:13:57 AM UTC+1, Simon King wrote: > > Hi! > > I have a large file (2.7*10^6 lines, 204.5*10^6 bytes) of code > that defines a python dict, some dict values are matrices > of dimension roughly 800x1200 over GF(8), some dict values are > other dicts. > > Problem: When I try to load the file with sage.repl.load.load, > my laptop very soon starts swapping. >
Isn't it what pickle/cPickle is for? Basically you store binary images of your python objects and load them into the memory directly. > The data file is a Python readable translation of a libgap > readable data file. libgap only needs 30 seconds to read the > corresponding data. Thus, it *is* possible to read the data in > reasonable time. > > Is there a faster way to read and evaluate a large python code > block than sage.repl.load.load? > > Best regards, > Simon > > -- 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.