]> granicus.if.org Git - python/commit
builtin_zip(): Take a good guess at how big the result list will be,
authorTim Peters <tim.peters@gmail.com>
Mon, 29 Apr 2002 21:27:32 +0000 (21:27 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 29 Apr 2002 21:27:32 +0000 (21:27 +0000)
commit67d687a1145d12f1e7e835a0c8259ba1cc2450b1
tree149659a94c9324080026103b025eafef2fa80095
parent541703b18f6eaff9ffdc4d101cb692a4362da42f
builtin_zip():  Take a good guess at how big the result list will be,
and allocate it in one gulp.

This isn't a bugfix, it's just a minor optimization that may or may not
pay off.
Lib/test/test_iter.py
Python/bltinmodule.c