summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-08-16 07:04:56 (GMT)
committerGuido van Rossum <guido@python.org>2002-08-16 07:04:56 (GMT)
commitc7903a13d2dc58d2f239a4d3bb29703199b450e4 (patch)
treec58b263f9df73631be99d1e8555c93a6020581c5 /Tools
parent8e829200b1ac79750224563331032de031b76288 (diff)
downloadcpython-c7903a13d2dc58d2f239a4d3bb29703199b450e4.zip
cpython-c7903a13d2dc58d2f239a4d3bb29703199b450e4.tar.gz
cpython-c7903a13d2dc58d2f239a4d3bb29703199b450e4.tar.bz2
A nice little speed-up for filter():
- Use PyObject_Call() instead of PyEval_CallObject(), saves several layers of calls and checks. - Pre-allocate the argument tuple rather than calling Py_BuildValue() each time round the loop. - For filter(None, seq), avoid an INCREF and a DECREF.
Diffstat (limited to 'Tools')
0 files changed, 0 insertions, 0 deletions