~/talk

Iterators in Go 1.23: how to use them and how fast are they?

TalkinRussianat HighLoad++ 2024 · 2024-12-02..12-03· [go]
links:none on file
slides:none on file

The talk explains the new iterator feature added in Go 1.23 (aka ‘range over funcs’), why it was introduced and the language motivation. It presents microbenchmarks comparing iterator performance to channels and discusses practical usage patterns and where iterators can be useful.

AI-written summary · about

  1. 0:00Introduction
  2. 1:10What are Go iterators
  3. 3:39iter package and Seq types
  4. 7:38Why use iterators
  5. 9:03Iterators and coroutines
  6. 13:02Iterator performance
  7. 17:41Iterator edge cases
  8. 22:40Iterators and concurrency
  9. 25:49Error handling in iterators
  10. 27:58Resource management
  11. 29:43Iterators in pipelines
  12. 33:13Next and Stop functions
  13. 35:48Pairwise data processing
  14. 36:29Future of Go iterators
  15. 38:57Complexity and adaptation
  16. 40:01Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.