Message227139
| Author |
gvanrossum |
| Recipients |
chatgris, gvanrossum, vstinner, yselivanov |
| Date |
2014年09月20日.01:07:44 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1411175265.51.0.0536478077389.issue22448@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Hi Joshua,
This is indeed a problem -- I just never expected that you would be having that many events and and canceling the majority. I am sorry you had to debug this. :-(
This was anticipated by the author of pyftpdlib (Giampaolo Roloda'), who proposed an elegant solution: keep track of the number of cancelled events, and when the number gets too high (according to some measure) the heapq is simply rebuilt by filtering out cancelled events. I think this is similar to your proposal (b).
I would love it if you could implement this! Just make sure to add some tests and follow the PEP 8 style guide. You can contribute upstream to the Tulip project first. https://code.google.com/p/tulip/ |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年09月20日 01:07:45 | gvanrossum | set | recipients:
+ gvanrossum, vstinner, yselivanov, chatgris |
| 2014年09月20日 01:07:45 | gvanrossum | set | messageid: <1411175265.51.0.0536478077389.issue22448@psf.upfronthosting.co.za> |
| 2014年09月20日 01:07:45 | gvanrossum | link | issue22448 messages |
| 2014年09月20日 01:07:44 | gvanrossum | create |
|