May 28, 2014

zlib库优化性能测试(port from facebook and intel)

背景 facebook基于zlib 1.2.5 做了些改进,并port了intel的一些相关补丁。本文主要目的是验证其压缩效果 主要有两个补丁: https://github.com/facebook/mysql-5.6/commit/8ac9e7d219c8679b75da26e64d702b5517d05ea8 (Optimize zlib for a non-sliding window.) https://github.com/facebook/mysql-5.6/commit/ed46ec9b4ef367f3335a531999f39cb1d9d40341 (port from intel) intel补丁的主要修改: 1) By default, use CRC32 as the hash, computed using SSE4.2 2) Also provide a better fallback hash in case of no SSE 3) By default use double-byte comparisons by enabling UNALIGNED_OK 4) Use best_len_minus_1 instead of best_len in longest_match() […]