
On Thu, Feb 3, 2011 at 6:15 PM, Stefan Behnel <stefan_ml@behnel.de> wrote:
Maciej Fijalkowski, 03.02.2011 11:14:
On Thu, Feb 3, 2011 at 11:56 AM, Fredrik Johansson wrote:
On Thu, Feb 3, 2011 at 8:01 AM, Maciej Fijalkowski wrote:
* Use list comprehension instead of generator expression.
I hope PyPy can do more in the future to speed up generator expressions.
It doesn't speed up things by much. Yeah, I can imagine we can improve on this, but it's also a bit hard.
Does PyPy generate inlined looping code for them if applicable?
(e.g. for any(), all(), sum(), sorted(), ...)
We don't inline generator expr. The reason is that it's hard to judge when generator frame escapes. We can probably do something with it, but it's not done yet.
Stefan
_______________________________________________ pypy-dev@codespeak.net http://codespeak.net/mailman/listinfo/pypy-dev