[pypy-issue] [issue967] itertools.imap significantly (order of magnitude) slower than map or gencomps

Armin Rigo tracker at bugs.pypy.org
Sat Dec 31 19:16:13 CET 2011


Armin Rigo <armin.rigo at gmail.com> added the comment:

The issue is not imap() alone, but the construct 'list(imap(...))'.  If you
write it differently, for example '[x for x in imap(...)]', then it is fast again.

----------
nosy: +arigo
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue967>
________________________________________


More information about the pypy-issue mailing list