Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev
Change to yield-from implementation
 

Index | Next | Previous | View Flat


greg.ewing at canterbury

Apr 9, 2012, 5:24 AM


Views: 101
Permalink
Change to yield-from implementation

Mark Shannon wrote:

> We have recently removed the f_yieldfrom field from the frame object.
> (http://bugs.python.org/issue14230)

Hey, wait a minute. Did anyone consider the performance effect
of that change on deeply nested yield-froms?

The way it was, a yield-from chain was traversed by a very
tight C loop that found the end frame and resumed it directly.
If I understand what you've done correctly, now it has to
enter and execute a bytecode in every frame along the way.

--
Greg
_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Subject User Time
Change to yield-from implementation greg.ewing at canterbury Apr 9, 2012, 5:24 AM
    Re: Change to yield-from implementation solipsis at pitrou Apr 9, 2012, 5:46 AM
        Re: Change to yield-from implementation guido at python Apr 9, 2012, 7:57 AM
    Re: Change to yield-from implementation benjamin at python Apr 9, 2012, 5:46 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.