]> granicus.if.org Git - python/commit
call_trace(): Add an additional parameter -- pointer to a PyObject*
authorFred Drake <fdrake@acm.org>
Fri, 8 Jun 2001 04:33:09 +0000 (04:33 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 8 Jun 2001 04:33:09 +0000 (04:33 +0000)
commit904aa7bb00e7cbcde9a8d7f449c2094155395d49
treec7c6636ca486ac4fd0eaf81c89441aa8afd39aa1
parentedb5ffb2c145fc52df2195c22688db51034b08d5
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.
Python/ceval.c