Build Performance With Roslyn

Roslyn has been kicking around for a couple of years now, and it’s got some seriously cool tricks up its sleeve for how you build and keep your code in line. I’m blown away by how these new goodies with .NET aren’t just for the new stack (you know, dotnet core and all that jazz), but they’re also giving a boost to the old classics we still rely on. In my current company, we’ve got a monolithic app that’s a real time hog. It takes a solid 15s to clean, a painful 80s to build, and a whopping 5 minutes to load up for the first time in many of the developer’s laptops. And that’s not just because the solution’s a beast – it’s all the dependencies, caching, and ASP.NET doing its runtime compiling too. Talk about putting a damper on the whole code-test-run cycle 😰. ...

March 6, 2024 · 2 min · Ronney Lira