优化history