diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2006-05-27 11:26:33 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2006-05-27 11:26:33 (GMT) |
commit | b98d65c0b701dfb2feb0593c2e2dd70371d11150 (patch) | |
tree | 56fc5e30f803892d31dfb77168d33953709a90a4 /Doc/whatsnew | |
parent | 2e3f6b77d5278abf399029dd64240329ad71f5b2 (diff) | |
download | cpython-b98d65c0b701dfb2feb0593c2e2dd70371d11150.zip cpython-b98d65c0b701dfb2feb0593c2e2dd70371d11150.tar.gz cpython-b98d65c0b701dfb2feb0593c2e2dd70371d11150.tar.bz2 |
Add Py_LOCAL macros
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/whatsnew25.tex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/whatsnew/whatsnew25.tex b/Doc/whatsnew/whatsnew25.tex index 1b228a2..8c149a9 100644 --- a/Doc/whatsnew/whatsnew25.tex +++ b/Doc/whatsnew/whatsnew25.tex @@ -2036,6 +2036,18 @@ string of build information like this: \code{"trunk:45355:45356M, Apr 13 2006, 07:42:19"}. (Contributed by Barry Warsaw.) +\item Two new macros can be used to indicate C functions that are +local to the current file so that a faster calling convention can be +used. \cfunction{Py_LOCAL(\var{type})} declares the function as +returning a value of the specified \var{type} and uses a fast-calling +qualifier. \cfunction{Py_LOCAL_INLINE(\var{type})} does the same thing +and also requests the function be inlined. If +\cfunction{PY_LOCAL_AGGRESSIVE} is defined before \file{python.h} is +included, a set of more aggressive optimizations are enabled for the +module; you should benchmark the results to find out if these +optimizations actually make the code faster. (Contributed by Fredrik +Lundh at the NeedForSpeed sprint.) + \item \cfunction{PyErr_NewException(\var{name}, \var{base}, \var{dict})} can now accept a tuple of base classes as its \var{base} argument. (Contributed by Georg Brandl.) |