Re: [sage-devel] Faster way to load python code

2017-09-16 Thread Thierry
Hi Simon, could you please give us access to the file (or a sample of it), so that we understand how it looke like ? Ciao, Thierry On Sat, Sep 16, 2017 at 09:13:38AM +, 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,

Re: [sage-devel] Faster way to load python code

2017-09-16 Thread John Cremona
When I read in files containing a lot of data I don't format the files to be python code but just data, then write a python function to parse the input. Mostly my data files are not so large as yours, but I have processed larger ones such as the ones at