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, see https://github.com/mrabarnett/mrab-regex/issues/586
> 

The regex library doesn't work correctly under PyPy.  The author is
using internal CPython implementation details that don't match PyPy,
meaning it's not only slow but also incorrect.  We have reported this
before, suggesting how to achieve the same thing using the correct,
public API, but the author was opposed to it.

My suggestion would be not to use that library at all.  Some of its
functionality is provided on top of stdlib by "backrefs" package, maybe
that'll help.


-- 
Best regards,
Michał Górny

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
pypy-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/pypy-dev.python.org
Member address: [email protected]

Reply via email to