Skip to content

PyPy Support via cpyext - What's needed? #129

@omerbenamram

Description

@omerbenamram

Hi,
I've been messing around with pyo3 and have been really enjoying it - the simplicity is fantastic, and it seems overhead with cpython is minimal, and very pleasant to work with.
Our production parsing systems run PyPy for the massive speedup gains we get for some text parsing cases we have implemented in python.
From my benchmarks, implementing identical parsers in rust yield around 250x~ time the speed of cpython, and around 15x that of pypy.

However for gradual migration we'd probably want to be able to load the rust extensions side-by-side with out running pypy processes.

It does seem that PyO3 recognizes pypy to some degree, as I did get two seperate shared libs
image

I've tried fiddling a little bit with PyO3 building code (on mac), but wasn't able to make anything meaningful so far 😕
image

Do you think it would be a big undertaking to make PyO3 compatible with cpyext? if so, what would be needed to make this work?

Thanks alot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions