[Numpy-tickets] [NumPy] #1029: Align data on unpickling?

NumPy numpy-tickets@scipy....
Thu Feb 26 15:50:29 CST 2009


#1029: Align data on unpickling?
-------------------------+--------------------------------------------------
 Reporter:  pv           |       Owner:  somebody    
     Type:  enhancement  |      Status:  new         
 Priority:  low          |   Milestone:  Unscheduled 
Component:  numpy.core   |     Version:  devel       
 Severity:  minor        |    Keywords:  pickle align
-------------------------+--------------------------------------------------
 Unpickling numpy arrays sometimes produces surprising data alignment, cf.:

   - #551
   - http://scipy.org/scipy/scipy/ticket/794

 While this behavior is OK, and the two bugs were only exposed because of
 this, one can wonder:

   - If mis-aligned data causes performance issues (eg. in arithmetic).
   - If the cost of aligning data on unpickling is small compared to the
 probability that aligned temporary copies need to be made repeatedly later
 on. (Eg. calling LAPACK routines repeatedly with a mis-aligned array ->
 temporary copy each time.)

 Answering these probably requires some benchmarks on how costly the copy
 on unpickling actually is.

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/1029>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list