[Python-Dev] collections.sortedtree (original) (raw)
Marko Rauhamaa marko at pacujo.net
Wed Mar 26 22:41:42 CET 2014
- Previous message: [Python-Dev] collections.sortedtree
- Next message: [Python-Dev] collections.sortedtree
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Antoine Pitrou <solipsis at pitrou.net>:
Wouldn't a heapq work as well for those two?
In my experience, networking entities typically start a timer at each interaction and cancel the pending one. So you have numerous timers that virtually never expire. You might have 100 interactions per second, each canceling and restarting a 10-minute timer.
I don't know first hand if that causes heap queues to cause measurable heap or CPU pressure.
Marko
- Previous message: [Python-Dev] collections.sortedtree
- Next message: [Python-Dev] collections.sortedtree
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]