so you mean the PNG format placeholder without the deflate (compress) and inflate (decompress) code cause a large binary of 140+KB ?
so to use a PNG function needed 303K in total or just 148KB enough ?
[/quote]
it looks like I was off in my math by 5 KB. I've redone it to show how it works a little better.
Looking at what was in each file you compiled it looks like this:
Code: Select all
Program Elements:
A ------- MessageRequester("","")
B ------- UseZipPacker()
C ------- UsePNGImageEncoder()
D ------- UsePNGImageDecoder()
Prog_1 Prog_2 Prog_3 Prog_4
A A A A
B B
C C
D D
-----------------------------------------------------------
Size 5 KB 201 KB 148 KB 303 KB
(A= 5 KB) 196 KB - A 143 KB - A 298 KB
(B= 196 KB) - B 102 KB
(C+D= 143 KB) (C+D= 102 KB)
- 102 KB - 102 KB
-----------------------------------------------------------
41 KB extra
Prog_4 had more in it but took up 41 KB less than Prog_3 even though Prog_3 doesn't include UseZipPacker().
Fred and others have given some explanation as to why this might be so.