objspace.opcodes.CALL_METHODΒΆ

  • name: CALL_METHOD
  • description: emit a special bytecode for expr.name()
  • command-line: –objspace-opcodes-CALL_METHOD
  • command-line for negation: –no-objspace-opcodes-CALL_METHOD
  • option type: boolean option
  • default: False

Enable a pair of bytecodes that speed up method calls. See pypy.interpreter.callmethod for a description.

The goal is to avoid creating the bound method object in the common case. So far, this only works for calls with no keyword, no *arg and no **arg but it would be easy to extend.

For more information, see the section in Standard Interpreter Optimizations.

Previous topic

objspace.opcodes

Next topic

objspace.nofaking

This Page