Nathan Probst wrote: > Cool. That's working fine now...(after I got rid of a leftover > Zip.Freethat was hiding from me!) > Any other tips on eeking out the maximum performance, valuing speed over > compression? > > On 3/20/06, R.Peters <russellpeters@xxxxxxxxxxx> wrote: > >> Nathan Probst wrote: >> >>> Great! Is there any difference if I'm using AddStreamToFile, as in: >>> Zip.ZipFileName := FileName; >>> Zip.ZipStream.LoadFromStream(MemStream); >>> ErrCode := Zip.AddStreamToFile('disk.dat', DateTimeToFileDate(Now), >>> >> 0); >> >>> Also, is the a correct way to "finalize" or close a file. Or is the >>> >> above >> >>> sufficient? >>> >>> On 3/20/06, Roger Aelbrecht <Roger.Aelbrecht@xxxxxxxxxxxx> wrote: >>> >>> >>>> Nathan Probst wrote: >>>> >>>> >>>>> Hello all - >>>>> I'm writing a little app that burns through a disk and slices it into >>>>> sections to be archived. In search for speed, I'd like to only create >>>>> TZipMaster once and reuse the instance for subsequent archives. Is >>>>> >> this >> >>>>> possible? Examples available? >>>>> >>>>> Thanks! >>>>> >>>>> Nathan Probst >>>>> >>>>> ----------- >>>>> To unsubscribe from this list, send an empty e-mail >>>>> message to: >>>>> delphizip-request@xxxxxxxxxxxxx >>>>> and put the word unsubscribe in the subject. >>>>> >>>>> >>>>> >>>>> >>>> Yes that is possible. >>>> Each time a job is finished you can changes all the properties that >>>> >> need >> >>>> to be changed for the new archive. >>>> Properties that probably need to be changed are >>>> - ZipfileName; >>>> - FSpecArgs; >>>> - FSpecArgsExcl; >>>> >>>> Then call ZipMaster.Add again. >>>> >>>> >>>> -- >>>> Roger Aelbrecht >>>> >>>> ----------- >>>> To unsubscribe from this list, send an empty e-mail >>>> message to: >>>> delphizip-request@xxxxxxxxxxxxx >>>> and put the word unsubscribe in the subject. >>>> >>>> >>>> >>> >>> -- >>> Nathan Probst >>> (970) 402-7384 >>> >>> ----------- >>> To unsubscribe from this list, send an empty e-mail >>> message to: >>> delphizip-request@xxxxxxxxxxxxx >>> and put the word unsubscribe in the subject. >>> >>> >>> >>> >> The file is finalised when each function concludes - you don't need to >> do anything. >> >> When finished all operations you can call the Clear function to release >> the memory used by the different tables and strings - also unloads the >> dll if it was dynamically loaded. >> >> - Russell Peters >> >> >> ----------- >> To unsubscribe from this list, send an empty e-mail >> message to: >> delphizip-request@xxxxxxxxxxxxx >> and put the word unsubscribe in the subject. >> >> > > > > -- > Nathan Probst > (970) 402-7384 > > ----------- > To unsubscribe from this list, send an empty e-mail > message to: > delphizip-request@xxxxxxxxxxxxx > and put the word unsubscribe in the subject. > > > Only to reduce the compression level - it defaults to 9 (max) but reducing it to 7 (or lower) will speed things up a bit. And avoid encryption - it slows things, also in current dll there is a bug that will be fixed today (or should be) that prevents encryption with AddStreamToFile. - Russell Peters ----------- To unsubscribe from this list, send an empty e-mail message to: delphizip-request@xxxxxxxxxxxxx and put the word unsubscribe in the subject.