Skip to content

Slow download speed #2

@gevtushenko

Description

@gevtushenko

Thank you for this project! It's much easier to get matrices now. The only issue I found so far is that it takes days to download big matrices. I've changed the chunk size along with the sleep duration so now it seems to be as fast as downloading with the browser. Here is my change:

with open(localdest, "wb") as outfile, tqdm(
    total=content_length, desc=self.name, unit="B"
) as pbar:
    for chunk in response.iter_content(chunk_size=131072):
        outfile.write(chunk)
        pbar.update(131072)
        time.sleep(0.01)

I'm not sure about exact numbers, but it most probably should be higher than in the trunk. Is there any reason to keep the chunk size that small?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions