OFDL icon indicating copy to clipboard operation
OFDL copied to clipboard

Faster Download alias increase ThreadPool size

Open felicijus opened this issue 2 years ago • 1 comments

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)

felicijus avatar Aug 23 '23 17:08 felicijus

Sure.

Hashirama avatar Aug 25 '23 22:08 Hashirama