ZIP functions of WD15

Using the ZIP functions of WinDev 15
 
There’s quite a number of ZIP-functions available in WinDev 15. They enable programmers to incorporate Backup / Restore functionality into their software. After some tests of these functions, the result is: yes, in general they do work and you can use them for the intended purpose!
 
But:

1 - Only ZIP and WDZ compression algorithms are available for backup purposes, zipCreate(..) doesn't accept RAR - you can only add(?) to or extract from existing RAR archives.

CAB: zipAddFile(..) stubbornly returned a 'no sufficient rights to add file' error though the referenced HFClassic-file is closed immediately before doing the zipAddFile(..) and a wait for completion of file-closing with Multitask()  as adviced to in WD Help. Imho, within a WinDev program CAB is unusable too.

2 - I couldn't find any difference in the resulting size of the compressed files after setting different levels of compression by MyArchive..compressionlevel = 1 -> 12 Suspiciously, in WinDev Help there’s no real advice about the recommended values for compressionlevel

3 - the results could be worse, but they're far off from being best in their class ..

My reference is 7-zip from http://www.7-zip.org/

Using 7-zip’s LZMA & LZMA2 algorithm + compression level 'Ultra' a dataset of 2,46 Gb (HF Classic files) resulted in a compressed file of about 88 Mb. Thus, 7-zip compressed the files to 3.58% of their original size.

Using WinDev ZIP the same dataset compresses to 259 Mb = 3 x bigger than .7z = 10.53% of orig. size

Using WinDev WDZ the same dataset compresses to 402 Mb = 4.5 x bigger than .7z = 16.34% of orig. size

Bottom line: If datasets aren’t too big and backup history is regularily taken care of ... at current hard disk sizes it probably doesn’t matter whether compression is down to 3% or to 10% only. However, if you expect your customers to have many backups and that they will not delete too old / unneeded backups then I’d recommend to have a look at the 7-zip command-line interface or to use the .dll of 7-zip!

 
 

 

[Home] [English] [WX Links] [Deutsch] [Impressum] [Downloads] [RADTranslate] [Upper] [NullValues] [TableOnStructure] [HFClassicHFSQL] [RAD11] [USBFind] [Color Contrast] [Dec. Separator] [Setup Problems] [Directories] [Help Authoring] [Access CHM] [Make GUID] [HOpen Files] [Reset Table] [Int. Gen. Number] [TAB-Control] [RAD11] [fDataDir.. commands] [Calendar Weeks] [Input & check EAN 8/13] [Test_for_Dups] [Feiertage] [MemStick as Dongle] [Get Date & Time] [German phone book] [MDI Behaviour] [WD 5.5: CHM-Help] [WD16: CHM-Help] [Calendar + Memo 1] [Install WD5.5 on Win7] [WD5.5 app on WD7*64] [HListFile] [ZIP-functions] [7-zip CLI] [HFCS + 7-zip] [HFSQL C/S on Linux]