OFDL
OFDL copied to clipboard
Faster Download alias increase ThreadPool size
Make it an Option to increase the ThreadPool...
For example: 64 Threads, a bit arbitrary but for me significant faster than with 2 Threads.
def download_profiles(self, user_post_ids: dict, total: List[int]) -> None:
pool = ThreadPool(64, self.stop_event)
profiles = self.return_all_subs()
for username_key in user_post_ids:
profile = profiles[username_key]
data = {}
data["info"] = "Starting download..."
self.data_display.emit(data)
pool.add_task(profile.download, self.stop_event, self.data_display,
user_post_ids[username_key], total)
Sure.