Issue #5096: Optimization code about speed

 Optimization code about speed