Yes, we have a specialized map for 2 arguments, a specialized zip makes sense. (Or figuring out how to specialize that loop for N-arguments where N is ~smallish so the inner loop is unrolled at app level, that's harder, but probably worthwhile n the long run).
Alex On Wed, May 1, 2013 at 10:19 AM, Armin Rigo <ar...@tunes.org> wrote: > Hi Alex, > > On Wed, May 1, 2013 at 4:08 PM, Alex Gaynor <alex.gay...@gmail.com> wrote: > > I read the benchmark, it's the loop inside of `zip()` which has very few > > iterations. > > Ah oh. Sorry. I forgot that zip() is implemented at app-level. > > Could it be helpful to have a faster version of zip() specialized to > two arguments? It would avoid the loop of length 2 that we do for > each pair of items. > > > A bientôt, > > Armin. > -- "I disapprove of what you say, but I will defend to the death your right to say it." -- Evelyn Beatrice Hall (summarizing Voltaire) "The people's good is the highest law." -- Cicero GPG Key fingerprint: 125F 5C67 DFE9 4084
_______________________________________________ pypy-dev mailing list pypy-dev@python.org http://mail.python.org/mailman/listinfo/pypy-dev