#2379: Move cleanup of prev_status from torrent.py to torrentmanager.py
-------------------+---------------------------
Reporter: bro | Owner:
Type: patch | Status: new
Priority: minor | Milestone: performance
Component: Core | Version: develop (git)
Keywords: |
-------------------+---------------------------
Each torrent instance has a LoopingCall that cleans up the prev_status
dictionary regularly. With a lot of torrents the number of LoopingCalls
starts to generate a lot of CPU usage.
This patch replaces the LoopingCalls for each torrent with one LoopingCall
in torrentmanager.py.
I tested on my desktop copmuter with the daemon running idle (not
downloading/seeding or with clients connected).
With 5000 torrents the CPU usage was reduced from 26-40% to 3-5%.
With 10000 it was reduced from 50-60% to 5-6%.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2379>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/deluge-dev.
For more options, visit https://groups.google.com/groups/opt_out.