locals优化