This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:45gvanrossumsetrecipients: + gvanrossum, vstinner, yselivanov, chatgris
2014-09-20 01:07:45gvanrossumsetmessageid: <1411175265.51.0.0536478077389.issue22448@psf.upfronthosting.co.za>
2014-09-20 01:07:45gvanrossumlinkissue22448 messages
2014-09-20 01:07:44gvanrossumcreate