4 ms·
Some of Apple's biggest perf wins in the last several years involved removing dispatch asynchrony from code paths that really don't need to be asynchronous. Ob
by favorited 3y ago
Some of Apple's biggest perf wins in the last several years involved removing dispatch asynchrony from code paths that really don't need to be asynchronous.
Obviously if you're writing an event-loop web server, then your file IO needs to be non-blocking or you're hosed. On the other hand, if you're reading a small configuration file from disk after your app launches, the most responsive option may well be to just read the bytes on the current thread and continue.
https://web.archive.org/web/20190606075031/https://twitter.com/Catfish_Man/status/1081673457182490624 https://web.archive.org/web/20190606075031/https://twitter.c...
https://web.archive.org/web/20211005132519/https://twitter.com/Catfish_Man/status/1081581652147490817 https://web.archive.org/web/20211005132519/https://twitter.c...