Issue with too many progress events when downloading large files

We noticed an issue when we tried packaging a large number of files (around 1.8GB to be precise). The "Downloading" phase was taking much longer than expected, and after investigating we found that the files had already been downloaded to the username/wc/ folder. After digging into the code we found that there was a progress event being generated for each read event, which for a large file can be hundreads of thousands of times (or more).

The event loop/UI thread was being overloaded with progress events, which caused it to display the wrong % complete and take 3-4 times longer to finish then the actual download. I was able to patch the FileDownloader.cs class so that it only creates progress events when the % complete changes, which resolved the issue. You can find the patch at the Google code repository:

https://code.google.com/p/wyupdate/issues/detail?id=3

This looks like a good patch. We'll test it out and very likely include it with the next version. Thanks for spotting this.