Author: Carl Friedrich Bolz <cfb...@gmx.de> Branch: guard-compatible Changeset: r83136:c716cfc2bc42 Date: 2016-03-15 18:00 +0100 http://bitbucket.org/pypy/pypy/changeset/c716cfc2bc42/
Log: a comment about attribute reordering diff --git a/pypy/objspace/std/mapdict.py b/pypy/objspace/std/mapdict.py --- a/pypy/objspace/std/mapdict.py +++ b/pypy/objspace/std/mapdict.py @@ -229,6 +229,9 @@ jit.isconstant(name) and jit.isconstant(index)) def _reorder_and_add(self, obj, name, index, w_value): + # XXX it might be worth it to change reordering such that instances of + # different classes end up with the same order of attributes. + # the idea is as follows: the subtrees of any map are ordered by # insertion. the invariant is that subtrees that are inserted later # must not contain the name of the attribute of any earlier inserted _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit