aspose file tools*
The moose likes Groovy and the fly likes use GPars to quicken simultaneous downloads? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Groovy
Bookmark "use GPars to quicken simultaneous downloads?" Watch "use GPars to quicken simultaneous downloads?" New topic
Author

use GPars to quicken simultaneous downloads?

Benjamin Weaver
Ranch Hand

Joined: Apr 08, 2003
Posts: 161
My groovy script reads a list of filePaths and downloads the files to a directory. As it is currently written it loops through the list. Basic stuff.

Would the use of GPars, say, of fork/join hasten this task? Would some kind of parallelism enable allocation of the downloading work to multiple processors? And should this be true, would I be able to preserve the order of processing guaranteed by a traditional loop?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: use GPars to quicken simultaneous downloads?