Return to the Planet of Managed Code Bloat

I just updated my post The Bloated World of Managed Code with baseline memory footprints for Console and Winforms apps in .NET 2.0.

I’ll admit I am a bit of a hypocrite when it comes to managed code apps. Now that tiny, native BitTorrent clients are available such as uTorrent and BitComet, I just can’t force myself to suffer through the Java (Azeureus) and Python (ABC) clients. They’re nice enough, but I want small, clean and fast for this kind of app. And where’s the .NET BitTorrent client, anyway?

Managed code can be plenty fast, but I’ve always said that managed code isn’t appropriate for every kind of application. It’s another tool in your toolbox, but not the only one.

One particularly egregious example of managed code misuse, however, is in ATI’s Catalyst video card drivers. The “control center” is a client app which allows you to manipulate the settings. It’s written in .NET 1.1 and launched via a button in the graphics driver tab.

ATI Catalyst launcher

It’s a reasonable concept, but in practice – it sucks. Even on a clean Pentium 4 3.2 machine with 1gb of RAM, loading the control center for the first time feels like almost a full minute of waiting for something to happen. As commenters on Junfeng Zhang’s log point out, this is likely due more to poor coding than anything else. But what really irks me is that all I want to do is adjust a few minor video card settings. Is it really appropriate to have such a heavyweight app for such a simple task?

Which brings me back to using managed code in appropriate places. Although there was a bit of a hubbub about managed code and Vista last year, Microsoft is pursuing managed code aggressively, as Dan Fernandez notes in Debunking the Microsoft’s not using Manged Code Myth. He provides a succinct list of recent Microsoft products and the number of lines of managed code in each one:

  • Visual Studio 2005: 7.5 million lines
  • SQL Server 2005: 3 million lines
  • BizTalk Server: 2 million lines
  • Visual Studio Team System: 1.7 million lines
  • Windows Presentation Foundation: 900K lines
  • Windows Sharepoint Services: 750K lines
  • Expression Interactive Designer: 250K lines
  • Sharepoint Portal Server: 200K lines
  • Content Management Server: 100K lines

Managed code is great. But a world where everything is managed code – including the operating system and essential utilities – is still pretty far off.

Related posts

Why Ruby?

I've been a Microsoft developer for decades now. I weaned myself on various flavors of home computer Microsoft Basic, and I got my first paid programming gigs in Microsoft FoxPro, Microsoft Access, and Microsoft Visual Basic. I have seen the future of programming, my friends, and it is

By Jeff Atwood ·
Comments

Donating $5,000 to .NET Open Source

Way back in June of last year, I promised to donate a portion of my advertising revenue back to the community: I will be donating a significant percentage of my ad revenue back to the programming community. The programming community is the reason I started this blog in the first

By Jeff Atwood ·
Comments

Do Not Buy This Book

A few friends and I just wrote a book together: The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks. I met K. Scott Allen, Jon Galloway, and Phil Haack through their excellent blogs. That online friendship carried over into real life. We always thought it'd

By Jeff Atwood ·
Comments

Defining Open Source

As I mentioned two weeks ago, my plan is to contribute $10,000 to the .NET open source ecosystem. $5,000 from me, and a matching donation of $5,000 from Microsoft. There's only two ground rules so far: 1. The project must be written in .NET managed

By Jeff Atwood ·
Comments

Recent Posts

Let's Talk About The American Dream

Let's Talk About The American Dream

A few months ago I wrote about what it means to stay gold — to hold on to the best parts of ourselves, our communities, and the American Dream itself. But staying gold isn’t passive. It takes work. It takes action. It takes hard conversations that ask us to confront

By Jeff Atwood ·
Comments
Stay Gold, America

Stay Gold, America

We are at an unprecedented point in American history, and I'm concerned we may lose sight of the American Dream.

By Jeff Atwood ·
Comments
The Great Filter Comes For Us All

The Great Filter Comes For Us All

With a 13 billion year head start on evolution, why haven’t any other forms of life in the universe contacted us by now? (Arrival is a fantastic movie. Watch it, but don’t stop there – read the Story of Your Life novella it was based on for so much

By Jeff Atwood ·
Comments
I Fight For The Users

I Fight For The Users

If you haven’t been able to keep up with my blistering pace of one blog post per year, I don’t blame you. There’s a lot going on right now. It’s a busy time. But let’s pause and take a moment to celebrate that Elon Musk

By Jeff Atwood ·
Comments