diff options
| author | Cody Logan <cody@lokken.dev> | 2023-11-16 10:23:49 -0800 |
|---|---|---|
| committer | Cody Logan <cody@lokken.dev> | 2023-11-16 10:23:49 -0800 |
| commit | 2f3074e1b2a62cbd5e32778abc0ff82027c1ce3b (patch) | |
| tree | c8e7fc5662cf1a34a5b2ecbd8b2bbbbaa630b19c /src/wikiget/__init__.py | |
| parent | ce58a03caa6f4d9e3cb01898b4b73716031b24dd (diff) | |
| download | wikiget-2f3074e1b2a62cbd5e32778abc0ff82027c1ce3b.tar.gz wikiget-2f3074e1b2a62cbd5e32778abc0ff82027c1ce3b.zip | |
Reuse existing Site object when possible in batch downloads
Previously, every file downloaded in a batch would create a new Site
object. Now, the Site object created by the first file will be reused
by subsequent files if it matches the file's requested host, which will
significantly speed up the download process, assuming all files are from
the same site. This is a quick and dirty fix which could be improved to
better handle situations where there are a mix of files from different
sites.
Diffstat (limited to 'src/wikiget/__init__.py')
0 files changed, 0 insertions, 0 deletions
