摘要: 在系统从redhat5升到redhat6的过程中,服务的性能差了很多。经过定位发现是程序中频繁调用localtime/localtime_r所致。而调用localtime_r 的实现中,对时区进行了加锁,有bug反馈其有切换的性能损耗。修复服务程序就有两种思路。1. 减少localtime_r的调用... 阅读全文
posted @ 2016-01-18 16:21 westfly 阅读(4203) 评论(0) 推荐(0) 编辑