[pypy-dev] [pypy-commit] pypy cpyext-faster-arg-passing: document branch

Antonio Cuni anto.cuni at gmail.com
Wed Jan 31 07:16:15 EST 2018


Hi Carl,
wow, this looks awesome. Did you run benchmarks to measure the speedup? If
yes, should we add them to my repo?
https://github.com/antocuni/cpyext-benchmarks

ciao,
Anto

On Tue, Jan 30, 2018 at 1:31 PM, cfbolz <pypy.commits at gmail.com> wrote:

> Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
> Branch: cpyext-faster-arg-passing
> Changeset: r93724:627a1425607c
> Date: 2018-01-30 14:30 +0100
> http://bitbucket.org/pypy/pypy/changeset/627a1425607c/
>
> Log:    document branch
>
> diff --git a/pypy/doc/whatsnew-head.rst b/pypy/doc/whatsnew-head.rst
> --- a/pypy/doc/whatsnew-head.rst
> +++ b/pypy/doc/whatsnew-head.rst
> @@ -23,3 +23,11 @@
>  added, then the performance using mapdict is linear in the number of
>  attributes. This is now fixed (by switching to a regular dict after 80
>  attributes).
> +
> +
> +.. branch: cpyext-faster-arg-passing
> +
> +When using cpyext, improve the speed of passing certain objects from PyPy
> to C
> +code, most notably None, True, False, types, all instances of C-defined
> types.
> +Before, a dict lookup was needed every time such an object crossed over,
> now it
> +is just a field read.
> _______________________________________________
> pypy-commit mailing list
> pypy-commit at python.org
> https://mail.python.org/mailman/listinfo/pypy-commit
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20180131/d7f20d31/attachment.html>


More information about the pypy-dev mailing list