Ticket #806 (defect)
Opened 3 weeks ago
Last modified 2 weeks ago
Move dead thread detection
Status: closed (fixed)
| Reported by: | fumanchu | Assigned to: | fumanchu |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | CherryPy code | Keywords: | |
| Cc: |
wsgiserver does the following on ThreadPool?.put:
# Remove any dead threads from our list for t in self._threads: if not t.isAlive(): self._threads.remove(t)
This can be expensive to do on every put if you have a lot of threads. It should be moved to occur less frequently.
Change History
04/21/08 14:08:03: Modified by fumanchu
- status changed from new to assigned.
04/26/08 18:08:13: Modified by fumanchu
- status changed from assigned to closed.
- resolution set to fixed.
Fixed in [1950].


Wow. Just commenting it out bumps a perf test I'm doing from 110 req/sec to 135 (since there's much less context switching back to the main thread, parse_request etc. complete much faster).