Hi, 2012/7/3 Stefan Behnel <stefan...@behnel.de>
> I've been working with one of the modules in the Python benchmark suite, > namely nbody, and tried to make it run a little faster when compiled with > Cython in PyPy. I managed to get a massive speed-up by avoiding some > borrowed references during list iteration and using PySequence_GetItem() > instead, but now some 50-60% of the runtime are spent in Py_DecRef(). > Don't forget that cpyext reference counts are quite different from CPython: PySequence_GetItem() needs to *create* a PyObject structure, and the returned object has a refcount of 1. Then Py_DECREF() will really *deallocate* the PyObject structure... This is quite more expensive than the simple refcount increment/decrement done by CPython. > OverflowError: array too large > Looks like a ctypes bug to me. Which OS, Python, etc. are you using? -- Amaury Forgeot d'Arc
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev