|
Post by Heiko Schrder on Feb 14, 2004 6:02:33 GMT -5
Hello,
I'm testing your VCLZIP Pro component. How can I speed up the compression if I add a file with a little size to a big ZIP file? In my tests I add a file with 5kB to a ZIP with a size of 2.1 GB. Is there a hidden option to speed it up? At this moment it takes too long, also your demo needs much time.
Best regards Heiko
|
|
|
Post by Kevin on Feb 15, 2004 10:14:12 GMT -5
Unfortunately, this is just the nature of the pkzip format, there is not really much that can be done about it. The entire original zip file must be copied to add the file when working with an already existing archive.
One thing that might help is, if you can be sure that your temp area is on the same disk as your archive, this will remove one copy that is done. The new zip file (and this is only when adding to an existing archive) is created in the temp directory and then it must be copied to where your original archive was. If this is the same disk, then only a rename has to be done.
If the TempPath property is not set, then your system's temp directory is used. So you can assure that it is on the same disk as your archive by setting the TempPath property. But, be sure there is enough room where ever you point this to.
Kevin
|
|
|
Post by Heiko Schrder on Feb 15, 2004 10:42:01 GMT -5
Hi Kevin,
thanks for your fast response.
In the last time I used DelphiZip and there was no problem to add files to big ZIPs fast.
The problem is I want to make fast updates of the zip file.
Another question is the method CheckArchive. My question is: this is not a real zip test? Is there a test method possible?
|
|
|
Post by Kevin on Feb 15, 2004 15:18:49 GMT -5
CheckArchive is a real test of the archive, it internally unzips every file and tests it against the checksum. Be sure to define an OnBadCRC event so you know which files are bad and so that you don't get an error messagebox.
FileIsOK is what you want to check an individual file.
|
|