Author: Antonio Cuni <[email protected]> Branch: extradoc Changeset: r5837:5a8c64c3a71f Date: 2017-10-09 14:55 +0200 http://bitbucket.org/pypy/extradoc/changeset/5a8c64c3a71f/
Log: (antocuni, arigo): another idea diff --git a/planning/cpyext.txt b/planning/cpyext.txt --- a/planning/cpyext.txt +++ b/planning/cpyext.txt @@ -8,3 +8,12 @@ - make_typedescr() for the type object (typeobject.py) should pass basestruct=PyHeapTypeObject?? + +- right now the conversion from space.w_None to Py_None always does a dict + lookup (inside as_pyobj); investigate whether it is worth to add a special + case for it. A possible more general solution is to add a special field to + some selected W_* classes (for example W_TypeObject, W_NoneObject and an + hypotetical W_CPyObject) which contains a PyObject* field, so that doing the + w_* -> py_* lookup is just a getfield (there is alreadt support for this in + rawrefcount.create_link_pyobj) + _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
