[Cython] Fwd: PEP 393 Summer of Code Project

Stefan Behnel stefan_ml at behnel.de
Mon Aug 22 22:11:05 CEST 2011

Sounds like he's at a point where this becomes interesting for us.


-------- Original-Message --------
Subject: PEP 393 Summer of Code Project
Date: Mon, 22 Aug 2011 14:58:51 -0400
From: Torsten Becker <torsten.becker... at gmail.com>
To: python-dev... at python.org

Hello all,

I have implemented an initial version of PEP 393 -- "Flexible String
Representation" as part of my Google Summer of Code project.  My patch
is hosted as a repository on bitbucket [1] and I created a related
issue on the bug tracker [2].  I posted documentation for the current
state of the development in the wiki [3].

Current tests show a potential reduction of memory by about 20% and
CPU by 50% for a join micro benchmark.  Starting a new interpreter
still causes 3244 calls to create compatibility Py_UNICODE
representations, 263 strings are created using the old API while 62719
are created using the new API.  More measurements are on the wiki page

If there is interest, I would like to continue working on the patch
with the goal of getting it into Python 3.3.  Any and all feedback is


[1]: http://www.python.org/dev/peps/pep-0393
[2]: http://bugs.python.org/issue12819
[3]: http://wiki.python.org/moin/SummerOfCode/2011/PEP393

More information about the cython-devel mailing list