>
> I build my EXE application with encryption. When I pack this EXE file with
>
> PKZIP, ARJ, LHA, RAR etc., I've got a very poor compression rate. Trying to
> build an EXE without encryption, the compression rate seems to be normal.
> Any suggestions about using both - encryption and normal compression ?
>
> Thanks, Primoz.
Compression schemes work very well by doing two things:
1) recognize patterns, and substitute a few characters for frequent
strings
2) recognize the most common characters/strings, and replace them with a
few characters.
The reason that compression works so well when an .EXE is not encrypted
is that (V)FP tokenizes some things, but the .EXE also contains a ton of
plain text. The plain text (which comes from the field names in the
.SCX, .VCX, etc. tables, some source code, variables names, etc.) is
very easy to compress.
/Paul