MDI_ImageViewer.pb example (20 kb text in exe)

Everything else that doesn't fall into one of the other PB categories.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

MDI_ImageViewer.pb example (20 kb text in exe)

Post by va!n »

Hello Fred!
I taked a clother look to the compiled version of the included "MDI_ImageViewer.pb" example (PB4 beta3)! The compiled file takes arround 409 KB! By taking a look inside the exe, you will find arround 20/21 KB of pure text like ErrorMessages and so on! Afaik all textes are from the ImagePlugins!? Is there any way to cut the text down to save some KB´s? Its not really required but would be nice :wink:

[Edited 00:33am]
I noticed, the actual UsePNGImageDecoder() is based on libpng version 1.0.8 - July 24, 2000! (http://www.libpng.org/) The latest version of libpng is still version 1.2.8 - December 3, 2004! What do you think about using the latest libpng version? :wink:

[Edited 00:45am]
You are using interaly inflate = ZLIB version 1.1.3 !? If so, i think it make sence to move over to the latest ZLib version 1.2.3 - July 18, 2005 (http://www.zlib.net/), because it has been a lot improved...

# inflate is about 20% faster and minimizes memory allocation
# crc32 is about 50% faster
:wink:
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,