Chris McDonough <chr...@plope.com> added the comment:

Hi Graham,

The intent here is to only unwind generators because they may be calling 
start_response() as a side effect of the first iteration.  While other 
iterables might 
do that, I think they can lose, because this case is fairly uncommon, and the 
only 
side effect of not doing it is that profiling data is skewed.

Unwinding all iterables would mean running out of RAM when you unwound an 
app_iter that happened to serve up e.g. a big file, which I think would be 
worse 
than providing skewed profile data.

Thoughts?

----------
status: unread -> chatting

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue179>
__________________________________
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to