zlib-1.1.4 (and other versions) comes with assembly routines in the contrib directory. These are much faster than the default C code. The ebuild doesn't use these routines. 1. Determine current system type (ie i386, i586, i686, or other) 2. If we are building for a system type with assembly routine, copy the match.S file from the contrib/asm* directory to the main directory 3. configure with "-DASMV" added to the CFLAGS (for both shared and static) 4. for static, "make OBJA=match.o" 5. for shared, add "$(OBJA)" to "$(SHAREDLIB).$(VER): $(OBJS)" and to the next line (lines 82 and 83), then "make OBJA=match.o"
I am guessing there is a reason why this is not done by default ? Stability/whatnot issues?
The assembly stuff are not maintained, and I do not comfortable to add them.