Hi Amaury, On Fri, Apr 20, 2012 at 11:02, Amaury Forgeot d'Arc <[email protected]> wrote: > But is it desirable? The first call to PyUnicode_AsUnicode will allocate and > copy the unicode buffer, > but subsequent calls will quickly return the same address.
Indeed, it's a bit unclear. If I may repeat myself, I still think that the performance problems of cpyext are really due to the costly double-mapping between PyPy's real objects and PyObjects, together with INCREF/DECREF being function calls. This is the first place I would look at if I were concerned about it. (Stefan: see a previous mail where I described how to start.) A bientôt, Armin. _______________________________________________ pypy-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-dev
