summaryrefslogtreecommitdiffstats
path: root/Python/frozenmain.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-06-08 04:33:09 (GMT)
committerFred Drake <fdrake@acm.org>2001-06-08 04:33:09 (GMT)
commit904aa7bb00e7cbcde9a8d7f449c2094155395d49 (patch)
treec7c6636ca486ac4fd0eaf81c89441aa8afd39aa1 /Python/frozenmain.c
parentedb5ffb2c145fc52df2195c22688db51034b08d5 (diff)
downloadcpython-904aa7bb00e7cbcde9a8d7f449c2094155395d49.zip
cpython-904aa7bb00e7cbcde9a8d7f449c2094155395d49.tar.gz
cpython-904aa7bb00e7cbcde9a8d7f449c2094155395d49.tar.bz2
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.
Diffstat (limited to 'Python/frozenmain.c')
0 files changed, 0 insertions, 0 deletions