Author: Antonio Cuni <[email protected]>
Branch: cpyext-fast-typecheck
Changeset: r94106:cb1e9314536a
Date: 2018-03-22 23:48 +0100
http://bitbucket.org/pypy/pypy/changeset/cb1e9314536a/
Log: try to see if this improve the performance
diff --git a/pypy/module/cpyext/methodobject.py
b/pypy/module/cpyext/methodobject.py
--- a/pypy/module/cpyext/methodobject.py
+++ b/pypy/module/cpyext/methodobject.py
@@ -221,6 +221,7 @@
"""
Abstract class; for concrete subclasses, see slotdefs.py
"""
+ _immutable_fields_ = ['offset[*]']
def __init__(self, space, pto, method_name, doc, func, offset):
self.space = space
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit