libmng size reductions

"Gerard Juyn" <gjuyn-qWit8jRvyhVmR6Xm/[email protected]> Fri, 10 Dec 2004 16:54:57 +0100
Newsgroups gmane.comp.graphics.mng.general
Organization Triple-T
Message-ID <41B9D4E1.3022.5413062A@localhost>
Hi,

I've finally found a few days to muck about with one of the ideas I had for 
reducing the size of libmng further. The idea was basically to rewrite the 
chunk&object-decoding/-handling and make it table-driven rather than one or 
more separate routines per chunk.

From my windows DLL build the link-map tells me I've sofar saved 23,576 
bytes (that's about 10% of the former libmng part itself). This is using Borland 
C++Builder v3 and full MNG support, turning the following options on:

MNG_OPTIMIZE_OBJCLEANUP
MNG_OPTIMIZE_CHUNKINITFREE
MNG_OPTIMIZE_CHUNKASSIGN
MNG_OPTIMIZE_CHUNKREADER

CVS on SF is up-to-date and I can view the PNG, JNG and MNG test-suites 
and various other images. It would be nice to see what results this all gives 
on the various MNGzilla builds and of course other implementations. (and it 
would be nice to find out if nothing got broken in the process....)

Gerard


--
Send the message body "help" to [email protected]