A problem about performance

Thank you. I thought there’s a problem inside fun2