ucore code performance optimization