~/talk

Mind the Memory When Using Value Types

TalkinRussianat Mobius 2024 Autumn · 2024-10-11..10-20· [swift]
links:none on file
slides:none on file

The talk explains Swift’s noncopyable value types introduced in Swift 5.9 and completed with protocol and generic support in Swift 6.0, and shows how to use them to store unique resources without heap allocation or reference semantics. Using an updated Swift and the Ozon Seller project, it demonstrates how noncopyability improves clarity about entity ownership and examines its impact on app performance and memory usage, compares similar approaches in other languages, and discusses potential issues and future solutions.

AI-written summary · about

  1. 0:00Introduction
  2. 2:32Memory optimization goals
  3. 6:54Data copy problems
  4. 12:59Compiler checks B Checker
  5. 16:50Evolution of non-copyable types
  6. 20:20Swift new keywords
  7. 21:46Network request example
  8. 22:50Data conversion
  9. 26:23Pagination and UI
  10. 31:23Modern Concurrency non-copyable types
  11. 33:10Memory usage metrics
  12. 37:02Summary and limitations
  13. 38:53Future of non-copyable types
  14. 39:15Q&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.