enhance code performance

代码细节提升