Tip 5: Async libraries APIs should be chunky
- Posted: Feb 06, 2014 at 6:16 PM
- 31,271 Views
- 2 Comments
Loading User Information from Channel 9
Something went wrong getting user information from Channel 9
Loading User Information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Right click “Save as…”
5. Libraries should have chunky async APIs.
But if you can't achieve that, there's a micro-optimization you can use for async methods based around the fast-path which can reduce or eliminate the heap overhead of async methods. As always, don't micro-optimize prematurely...
Slides, source code and transcript for this video are available here.