diff options
author | Guido van Rossum <guido@python.org> | 2002-08-16 07:04:56 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-16 07:04:56 (GMT) |
commit | c7903a13d2dc58d2f239a4d3bb29703199b450e4 (patch) | |
tree | c58b263f9df73631be99d1e8555c93a6020581c5 /Tools/bgen | |
parent | 8e829200b1ac79750224563331032de031b76288 (diff) | |
download | cpython-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/bgen')
0 files changed, 0 insertions, 0 deletions