PyEval_EvalFrame

B

bretthall

I see a C/python program that we're using spending a lot of time in
this function, far more than we think it should. What is it?

Thanks in advance! There seems to be nothing (but a bunch of stack
traces) when I google this.
Brett
 
T

Tim Peters

[[email protected]]
I see a C/python program that we're using spending a lot of time in
this function, far more than we think it should. What is it?

PyEval_EvalFrame is the heart of the CPython interpreter: it's a very
large function that _implements_ the interpreter, marching through the
byte codes and executing them. You can't run Python code at all
without it.
Thanks in advance! There seems to be nothing (but a bunch of stack
traces) when I google this.

It's rarely called directly, but is called indirectly by everything
that runs Python code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,294
Messages
2,571,511
Members
48,200
Latest member
SCPKatheri

Latest Threads

Top