[pypy-dev] psycopg2 on PyPy

Leonardo Santagada santagada at gmail.com
Thu Jan 6 03:29:12 CET 2011


On Wed, Jan 5, 2011 at 6:51 PM, Alex Gaynor <alex.gaynor at gmail.com> wrote:
> Hi all,
> For the past week and a half I've been working on an RPython implementation
> of psycopg2 (the most popular database adapter for PostgreSQL).  I'm happy
> to announce that at this point it is passing all the DB-API2.0 tests, and
> all the psycopg2 tests I converted into AppTests (most of them I think), it
> also passes the entire DJango test suite (which makes extensive use of the
> database).  The downside is that running the full Django test suite on top
> of pypy with it is still about 20% slower than CPython.  So we have some
> work to do.  The code is all
> at: http://bitbucket.org/alex_gaynor/pypy-postgresql, I don't plan on
> merging this back into the main dev tree, as it doesn't seem appropriate for
> pypy-core to have a PostgreSQL adapter, rather I'd like to spend some time
> looking at seperate compilation, so we can have external RPython modules.
>

What do you think are the main performance problem? Is it just the
nature of unittests that are too small for the jit to work, is it that
you have maybe too much rpython code that is not being jitted as well
as it could or is it just a performance problem of pypy?


-- 
Leonardo Santagada



More information about the Pypy-dev mailing list