diff Python/sysmodule.c @ 18057:15f4381cff0f legacy-trunk

call_trace(): Add an additional parameter -- pointer to a PyObject* that should be used to cache an interned version of the event string passed to the profile/trace function. call_trace() will create interned strings and cache them in using the storage specified by this additional parameter, avoiding a lot of string object creation at runtime when using the profiling or tracing functions. All call sites are modified to pass the additional parameter, and four static PyObject* variables are allocated to cache the interned string objects. This closes SF patch #431257.
author Fred Drake <fdrake@acm.org>
date Fri, 08 Jun 2001 04:33:09 +0000
parents beb9d2b02846
children ee24bd0cad29 4cb34314bd97
line wrap: on
line diff