Iteration backward on slice is faster than iteration forward in Go?

前端 未结 0 1698
遇见更好的自我
遇见更好的自我 2020-12-14 23:23

From the talk Mechanical Sympathy in Go of GopherCon Turkey 2020,

  • The CPU was able to predict that we iterate backwards
  • Slightly faster be
相关标签:
回答
  • 消灭零回复
提交回复
热议问题