• Post Reply Bookmark Topic Watch Topic
  • New Topic

Fastest way to unzip a file  RSS feed

 
Rajagopal Manohar
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have a huge zip file arnd 500 MB with a large number of entries each of small size average of 200 KB each. I know how to unzip a file using java. I just want to know if there is a faster way of doing it. would it be faster if I use something like unzip.exe (If yes which is the fatest unzipper around) from java. I am working on a windows XP box.

The code I use to unzip the file now



Please help.
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The performance may well vary depending on I/Ospeed, memory, CPU speed (i.e one of the two methods may be more affected by one of these variables than the other). Why don't you run some simple tests to find out?
 
Rajagopal Manohar
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The performance may well vary depending on I/Ospeed, memory, CPU speed (i.e one of the two methods may be more affected by one of these variables than the other).

Yup I know that and have seen that. But these things I donot control


Why don't you run some simple tests to find out?

Exaclty what I am doing now but wanted to piggyback on Ranchers experience to save some time and get some new ideas as to how to go about it. Because even a 30 sec improvement in performance is seen as huge and welcome.
 
Rajagopal Manohar
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wanted to share this.

I tried to use thread pooling (of size 5,10,15,20)to extract the ZipEntries in parallel but it did not workout took more time than without threading
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!