Author: chromatic
Date: Tue Aug 12 15:48:04 2008
New Revision: 30192

Modified:
   trunk/src/pmc/object.pmc

Log:
[PMC] Made Object PMC set the proxy attribute of (if the object proxies a
builtin PMC) by string, not key.  Like r30191, this is an optimization to work
around slowness in get_attr_index_keyed() and it may not last in the long term,
but it's measurably faster now.

Modified: trunk/src/pmc/object.pmc
==============================================================================
--- trunk/src/pmc/object.pmc    (original)
+++ trunk/src/pmc/object.pmc    Tue Aug 12 15:48:04 2008
@@ -612,7 +612,7 @@
                 if (cur_class->vtable->base_type == enum_class_PMCProxy) {
                     /* Clone this PMC too. */
                     STRING *proxy         = CONST_STRING(interp, "proxy");
-                    VTABLE_set_attr_keyed(interp, cloned, cur_class, proxy,
+                    VTABLE_set_attr_str(interp, cloned, proxy,
                         VTABLE_clone(interp,
                             VTABLE_get_attr_keyed(interp, pmc, cur_class, 
proxy)));
                 }

Reply via email to