[pypy-commit] pypy cpyext-fast-typecheck: try to see if this improve the performance
antocuni
pypy.commits at gmail.com
Thu Mar 22 18:49:21 EDT 2018
Author: Antonio Cuni <anto.cuni at gmail.com>
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
More information about the pypy-commit
mailing list