Armin Rigo, 20.04.2012 11:16:
> On Fri, Apr 20, 2012 at 11:02, Amaury Forgeot d'Arc 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.

Well, have you seen my macro changes in issue 1121?

https://bugs.pypy.org/issue1121

At least for the new ref-counting macros, I already presented the usual
stupid micro benchmark in a previous mail, giving me almost a factor of 2
in performance for objects with a ref-count > 1 in C space. I'll add the
numbers to the ticket.

Stefan

_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to