Fixing ReSharper input lag

Published on

Many people know ReSharper as a huge hog on system resources – an they are, to some extent, right. It gets especially frustrating when it starts slowing down typing. I like to do followin test of Visual Studio performance: open one of your larger and more complicated source files, put the caret to the first line and then hold down the down arrow key. It should blaze through the file rapidly, and more importantly at a very consistent pace. If it lags a bit here and there, you are having performance issues that are sure to impede your coding experience.

Using async/await with a custom thread pool

Published on

Async/await has a potential to dramatically simplify any C# code that relies on asynchronous methods. Its downside is that it is heavily tied into the threading model of whatever kind of application you are developing: console (system thread pool) vs. WPF vs. WinForms etc. – each of these execute the continuations somewhat differently. This article demonstrates how to control this behavior, so that you can direct the continuations to threads of your choosing.