[pypy-commit] pypy default: (fijal, cfbolz): kill the promote_string in typeobject, it leads to huge
cfbolz
pypy.commits at gmail.com
Sun Feb 21 16:48:46 EST 2016
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch:
Changeset: r82375:40f823984bbf
Date: 2016-02-21 22:47 +0100
http://bitbucket.org/pypy/pypy/changeset/40f823984bbf/
Log: (fijal, cfbolz): kill the promote_string in typeobject, it leads to
huge problems in code that uses getattr a lot (and doesn't improve a
lot of cases either)
diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -7,7 +7,7 @@
from pypy.interpreter.astcompiler.misc import mangle
from rpython.rlib.jit import (promote, elidable_promote, we_are_jitted,
- promote_string, elidable, dont_look_inside, unroll_safe)
+ elidable, dont_look_inside, unroll_safe)
from rpython.rlib.objectmodel import current_object_addr_as_int, compute_hash
from rpython.rlib.rarithmetic import intmask, r_uint
@@ -402,7 +402,6 @@
if version_tag is None:
tup = w_self._lookup_where(name)
return tup
- name = promote_string(name)
tup_w = w_self._pure_lookup_where_with_method_cache(name, version_tag)
w_class, w_value = tup_w
if (space.config.objspace.std.withtypeversion and
More information about the pypy-commit
mailing list