New submission from kostia.lopuhin <[email protected]>: Attached code is 3-10 times slower if all is used like this:
all(v == v0 for v in values[1:]) than if it is passed a list: all([v == v0 for v in values[1:]]) where values is a list of 4 elements. jitviewer shows a lot of extra stuff around call of "all" with generator argument (like call_may_force) ---------- files: all_slow.py messages: 5712 nosy: kostia.lopuhin, pypy-issue priority: performance bug status: unread title: all is slow when passed a short generator, much faster with short list ________________________________________ PyPy bug tracker <[email protected]> <https://bugs.pypy.org/issue1485> ________________________________________ _______________________________________________ pypy-issue mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-issue
