GithubHelp home page GithubHelp logo

Large files downloading issue #2 about downloader HOT 4 OPEN

toqe avatar toqe commented on August 16, 2024
Large files downloading issue #2

from downloader.

Comments (4)

abhay991 avatar abhay991 commented on August 16, 2024

i guess currently i am having same issue with this.

from downloader.

pgd19900 avatar pgd19900 commented on August 16, 2024

I'm working on the big file download using this program, but the big file download cardon problem is really a headache.

from downloader.

pgd19900 avatar pgd19900 commented on August 16, 2024

Hi, Can you provide email contact.

from downloader.

Toqe avatar Toqe commented on August 16, 2024

@pgd19900 I don't know what you mean by "cardon" / "caton", please explain with an example. If your question for email contact is if I provide free support for this software, the answer is no.

I haven't investigated this problem in depth, but to me it looks like that when a download of a huge file is created and the first part is written near the end of the file, this causes the Windows I/O system to allocate memory for the complete file, which takes some time.

So you may try creating the file in a more efficient way before the download starts (see https://stackoverflow.com/questions/1881050/creating-a-huge-dummy-file-in-a-matter-of-seconds-in-c-sharp for example), but I don't think this will stop the freeze alltogether.

If you really want a freeze-free solution, in my opinion you have to write your own DownloadToFileSaver that creates the full file on startup, but doesn't block on that. While the full file is created, it needs to temporarily save the already downloaded parts to some other storage/file and keep track of that. Then when the full file is completely created, the Saver needs to store the already downloaded parts and the correct position in the full file and from then on writes newly downloaded chunks directly to the fulll file.

from downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.