A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-February/042836.html below:

[Python-Dev] Idea for a fast calling convention

[Python-Dev] Idea for a fast calling convention [Python-Dev] Idea for a fast calling conventionFred L. Drake, Jr. fdrake at acm.org
Fri Feb 27 16:49:48 EST 2004
On Friday 27 February 2004 03:20 am, Raymond Hettinger wrote:
 > I've been working on ways to speedup parameter passing for function
 > calls.  It's somewhat expensive to pull parameters off of the stack,
 > assemble them into a new tuple, have the function disassemble the tuple,
 > and ultimately free the tuple.
...
 > My idea is for a new flag, METH_STACK, that generalizes (and potentially
 > replaces) METH_NOARGS AND METH_O.

How would METH_STACK methods work when called via func(*args) or via the 
various functions of the C API?

The nice thing about METH_NOARGS and METH_O is that they describe what the 
called function needs.  METH_STACK sounds like a core dump waiting to happen.  
;-(


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation


More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4