[Sugar-devel] [PATCH Browse] Cancel a download if space is very tight SL #394
Martin Langhoff
martin.langhoff at gmail.com
Wed Sep 12 08:26:37 EDT 2012
On Wed, Sep 12, 2012 at 8:20 AM, Manuel Kaufmann <humitos at gmail.com> wrote:
> OK. I was taking a look at the datastore source code and I understood
> that the file is copied, using the traditional way and when the copy
> finishes the source file is unlinked.
Ouch! I haven't reviewed the code (have to run some personal errands
today, can't dig into it as I'd like), but if you are correct, there
are two worries
- Downloading a 100MB file needs >200MB+ free.
- All that passing around the file to update the percentage bar is
causing pointless file copies -- if you are downloading a large file,
it is pretty screwed.
cheers,
m
--
martin.langhoff at gmail.com
martin at laptop.org -- Software Architect - OLPC
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
More information about the Sugar-devel
mailing list