Mercurial > cpython-lru_cache-weakref
comparison Python/mysnprintf.c @ 31630:b4e4dbd24fe7 legacy-trunk
Refactor and optimize code for UNPACK_SEQUENCE.
* Defer error handling for wrong number of arguments to the
unpack_iterable() function. Cuts the code size almost in half.
* Replace function calls to PyList_Size() and PyTuple_Size() with
their smaller and faster macro counterparts.
* Move the constant structure references outside of the inner loops.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Mon, 08 Mar 2004 23:25:30 +0000 |
| parents | 8af86a952b2c |
| children | 2925b568aacc a8cc8e6f0c1a |
comparison
equal
deleted
inserted
replaced
| 31629:31577c2815de | 31630:b4e4dbd24fe7 |
|---|
