[Scipy-tickets] [SciPy] #1371: MemoryError in scipy.io.savemat

SciPy Trac scipy-tickets@scipy....
Sun Jun 10 13:22:13 CDT 2012

#1371: MemoryError in scipy.io.savemat
 Reporter:  Cerno                                 |       Owner:  matthew.brett@…        
     Type:  enhancement                           |      Status:  new                    
 Priority:  normal                                |   Milestone:  Unscheduled            
Component:  scipy.io                              |     Version:  0.8.0                  
 Keywords:  matlab io savemat memory MemoryError  |  

Comment(by matthew.brett@…):

 The arrays are written to disk one by one.

 I think the offending code is here:

     def write_bytes(self, arr):

 as you saw in your stack trace above.  The temporary here is the result of
 the `arr.tostring()` call.  I don't know how to avoid that temporary - do
 you have any suggestions?

Ticket URL: <http://projects.scipy.org/scipy/ticket/1371#comment:7>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list