Hi Wim,

On Tue, Jun 5, 2012 at 1:53 AM,  <wlavrij...@lbl.gov> wrote:
> Overall, I'm happy enough with the result (I'm going to need handling of
> PyObject*'s later for my own nefarious purposes).

Maybe we can motivate you to look for and fix inefficiencies in
cpyext :-)  As far as I know it's still fully designed for "it works
and we don't care about speed".  See for example
https://bugs.pypy.org/issue1121 which tries to push optimizations in
cpyext but with no-one really interested from the core group.

But IMHO the main slow part that should be optimized (probably by
being rewritten from scratch) is the correspondance between the proxy
PyObject structures and the real PyPy objects, which is exactly the
part that interests you too.  It should be possible at least to cope
with only one dict lookup instead of at least two to do the roundtrip
"pypy obj -> cpyext obj -> pypy obj".


A bientôt,

Armin.
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to