[pypy-dev] numpy plans in the next 6 months?

Yury V. Zaytsev yury at shurup.com
Thu Feb 20 19:50:46 CET 2014


On Thu, 2014-02-20 at 19:38 +0100, Armin Rigo wrote:
> 
> Maybe you missed the point I made in the paragraph you quote?  Without
> a JIT, "a <op> b <op> c" cannot reasonably be done in a single
> iteration over the three arrays.  The pull request you quote improves
> the memory and cache pressure by doing some assignments in-place, but
> "a + b + c" still works in two passes: in pass one it writes
> intermediate data that will be re-read in pass two. 

Oh yes, you are right; I saw this pull request a couple of days ago, and
now interpreted the quote thinking only in terms of removing extra
memory allocations, which is, of course, only part of the problem.

Still, I hope you found it interesting that they are at least trying to
get rid of extra temporaries :-) Otherwise, sorry for the noise.

-- 
Sincerely yours,
Yury V. Zaytsev




More information about the pypy-dev mailing list