[pypy-dev] Re: regex is much slower in pypy than cpython

2025-09-02 Thread Michał Górny
On Wed, 2025-09-03 at 10:16 +0800, Li Li via pypy-dev wrote: > I want to use pypy to speed up my application, it's fast for standard > library such as dict/list. I need to use a third party library regex( > https://pypi.org/project/regex/). pypy is much slower with this library. > for full codes, s

[pypy-dev] Re: regex is much slower in pypy than cpython

2025-09-02 Thread matti picus via pypy-dev
I commented in the issue. Emulating the C API is hard, PyPy will always be slower than CPython when creating C PyObject* objects in C.There are things we could do to make calling methods and functions faster, but dedicated resources are needed. Matti On Wed, Sep 3, 2025 at 7:08 AM Li Li via pypy-

[pypy-dev] regex is much slower in pypy than cpython

2025-09-02 Thread Li Li via pypy-dev
I want to use pypy to speed up my application, it's fast for standard library such as dict/list. I need to use a third party library regex( https://pypi.org/project/regex/). pypy is much slower with this library. for full codes, see https://github.com/mrabarnett/mrab-regex/issues/586 __