前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
We can get a speed gain by moving the length calculation and assignment out of the loop.