• Guido van Rossum's avatar
    A nice little speed-up for filter(): · c7903a13
    Guido van Rossum yazdı
    - 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.
    c7903a13
bltinmodule.c 44.6 KB