Message152425
> I think the O(depth) version is fine. The O(1) version is quite more
> complicated, difficult to follow, and it seems less robust (it doesn't
> use try/finally and therefore might leak fds if the generator isn't
> exhausted before being destroyed).
I agree.
> On modern systems you have at least 1024 fds, so the restriction
> shouldn't be a problem.
Actually, I think you're much more likely to run above the max
recursion limit than RLIMIT_NOFILE (OTOH, you don't know how many FDs
are already open at the time of the call). |
|
Date |
User |
Action |
Args |
2012-02-01 08:36:09 | neologix | set | recipients:
+ neologix, jcea, ncoghlan, pitrou, tarek, rosslagerwall, hynek |
2012-02-01 08:36:08 | neologix | link | issue13734 messages |
2012-02-01 08:36:07 | neologix | create | |
|