Changes between Version 2 and Version 3 of PossibleOptimizationAreas/FillDiscussion

Show
Ignore:
Timestamp:
02/27/06 22:11:05 (7 years ago)
Author:
sasha
Comment:

added mialigned timings

Legend:

Unmodified
Added
Removed
Modified
  • PossibleOptimizationAreas/FillDiscussion

    v2 v3  
    3434}}} 
    3535Note the more than 10x improvement in the 'b' case.   
     36 
     37Travis suggested that misaligned case should remain unchanged.  Interestingly, patched code behaves quite differently for misaligned case: 
     38{{{ 
     39> python -m timeit -s "from numpy import zeros; x = zeros(10000,'h'); x.flags['ALIGNED'] = False" "x.fill(1)" 
     4010000 loops, best of 3: 101 usec per loop 
     41> python -m timeit -s "from numpy import zeros; x = zeros(10000,'i'); x.flags['ALIGNED'] = False" "x.fill(1)" 
     4210000 loops, best of 3: 106 usec per loop 
     43> python -m timeit -s "from numpy import zeros; x = zeros(10000,'d'); x.flags['ALIGNED'] = False" "x.fill(1)" 
     4410000 loops, best of 3: 112 usec per loop 
     45}}}