Chris McDonough <> 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 
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 
than providing skewed profile data.


status: unread -> chatting

Repoze Bugs <>
Repoze-dev mailing list

Reply via email to