Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39093
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2019-08-08 13:49 -0700 |
| References | <daa1fc10-39a1-4942-b9da-d7f5e1fa9907@googlegroups.com> <qihcn4$1mo7$1@gioia.aioe.org> <96b45a37-1ae3-49ea-b1ce-d35865af56a4@googlegroups.com> <1cwhusqwki54j.1jwxdgi2ud64l$.dlg@40tude.net> |
| Message-ID | <5cd2a554-8d6c-405e-88ed-8e33e6f8732b@googlegroups.com> (permalink) |
| Subject | Re: reading zip file |
| From | Eric Douglas <e.d.programmer@gmail.com> |
On Thursday, August 8, 2019 at 4:06:22 PM UTC-4, Joerg Meier wrote: > On Thu, 8 Aug 2019 08:00:10 -0700 (PDT), Eric Douglas wrote: > > > If it matters, I am reading the stream twice, once to check the total > > size of the zip files for a progress bar and once to extract them. > > Without wanting to be rude, I really think you need to take a step back > here and consider what you are doing. This is insane. By the time you have > enough information to display the progress bar, you are already COMPLETELY > FINISHED with what you want to display the progress of. Then you throw it > all away to repeat the exact process, making people wait and watch a > progress bar for something that is already done before the bar shows up. > > You are, effectively, making people watch a progress bar that goes from > 101% to 200%. > > Liebe Gruesse, > Joerg > > -- > Ich lese meine Emails nicht, replies to Email bleiben also leider > ungelesen. We can't tell them how long it will take to 'download' the files but that should be the fast part, since the web server is on the local domain network. If there was an easy way to see the total for that I'd add a progress bar for that part also. I'm iterating over the file objects in the zip stream to find the total size to show the progress of writing them to disk which could be slow if they don't have an ssd. Sure that iteration adds a few seconds but it is fast as long as it can be done in memory. If you copy a large file(s) in Windows it always starts with 'calculating' total time..
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
reading zip file Eric Douglas <e.d.programmer@gmail.com> - 2019-08-08 07:12 -0700
Re: reading zip file Arne Vajhøj <arne@vajhoej.dk> - 2019-08-08 10:48 -0400
Re: reading zip file Eric Douglas <e.d.programmer@gmail.com> - 2019-08-08 08:00 -0700
Re: reading zip file Arne Vajhøj <arne@vajhoej.dk> - 2019-08-08 11:30 -0400
Re: reading zip file Eric Douglas <e.d.programmer@gmail.com> - 2019-08-08 08:42 -0700
Re: reading zip file Andreas Leitgeb <avl@logic.at> - 2019-08-08 17:51 +0000
Re: reading zip file Arne Vajhøj <arne@vajhoej.dk> - 2019-08-08 17:17 -0400
Re: reading zip file Joerg Meier <joergmmeier@arcor.de> - 2019-08-08 22:06 +0200
Re: reading zip file Eric Douglas <e.d.programmer@gmail.com> - 2019-08-08 13:49 -0700
Re: reading zip file Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-08-08 19:49 +0200
Re: reading zip file Eric Douglas <e.d.programmer@gmail.com> - 2019-08-08 12:58 -0700
Re: reading zip file Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2019-08-08 22:38 +0200
csiph-web