Skip to content

Instantly share code, notes, and snippets.

View FWEugene's full-sized avatar

Yevgeniy FWEugene

  • Future Workshops
View GitHub Profile
@FWEugene
FWEugene / libdispatch-efficiency-tips.md
Created August 7, 2019 08:22 — forked from tclementdev/libdispatch-efficiency-tips.md
Making efficient use of the libdispatch (GCD)

libdispatch efficiency tips

I suspect most developers are using the libdispatch inefficiently due to the way it was presented to us at the time it was introduced and for many years after that, and due to the confusing documentation and API. I realized this after reading the 'concurrency' discussion on the swift-evolution mailing-list, in particular the messages from Pierre Habouzit (who is the libdispatch maintainer at Apple) are quite enlightening (and you can also find many tweets from him on the subject).

My take-aways are: