I have an applet for downloading unlimited files number via HTTpConnection.
one requirement is to calculate the total size of all files to download. i wrote a method that iterate through my files list ,call Httpconnection openConnection method get file lengh and add to totalsize variable.
How ever this process which take place at applet loading seem to be very slow.
is there any better alternative to calculate total size of multiple files on a HTTp server ? is there any workaround to minimize calculation time process?
posted 10 years ago
One option, you can use multi threading, each iteration is one thread, it will save time
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads