[Zlib-devel] To ASM or not to ASM?

Cosmin Truta cosmin at cs.toronto.edu
Fri Oct 3 20:55:35 EDT 2003


Based on my tests, and on the tests posted by Chris Anderson, I think
that it's worth using the decompression ASM code (ASMINF), which makes a
noticeable difference; but it's not worth using the compression code
(ASMV). In my opinion, the small speed improvements do not justify the
risk of using ASM code.

I am also curious about inlining. With VC6 and with gcc/MinGW, I saw no
reason to use inlining. How it's that in VC7.1?

My last question is about the choice between -G6 and the blended model.
I usually prefer the blended model; it's just that in VC6 the blended
model was nothing more than -G5, which is not so desirable nowadays.
What is your recommendation about the blended model in VC7.1?


Cosmin




More information about the Zlib-devel mailing list