A random mix of stuff that doesn't fit elsewhere ...

Monday, March 27, 2006

Firefox memory consumption

I'm with jcm, that Firefox 1.5 is not performance tuned correctly.

What's the bottleneck?

If your usage style is like mine with lots of apps open, lots of tabs in Firefox, etc. -- RAM is almost always your primary system bottleneck, resulting in sluggishness and swapping delay of switching from one window/app to another. I want my apps to optimize for a minimized memory footprint.

But there's an inherent bias against that -- because if you're looking at one app's performance in isolation, you'll trade memory for fewer CPU cycles, or (as in this case), bigger caches to compensate for slow internet connections. You tend to optimize for the good of the one application, not for the good of the whole system.

Firefox 2.0 is bumping down some of the default caches (which are relative to system memory size), and that's a good first step. Detecting the speed of the internet connection (and reducing caching in tune with higher speeds) would be a cool next step.

Until then, here are two cache settings that can be tweaked back to improve performance if RAM is also your bottleneck (enter 'about:config' in the address line of the browser, to set/change any of these settings)


Saturday, March 04, 2006

Taking a risk

Life ain't fun or rewarding without taking risks. But you can't be taking them willy-nilly or all the time.

Last month, I left a great job at Microsoft after five years. I helped develop a Bluetooth stack, I managed device driver teams in Windows. For the last two years, I was teaching and consulting, working for a great boss, getting to read/think/write. Seems stupid to give that all away. But ... it was getting too comfortable.

In my life I want to live and learn, to help solve some important problems, and to leave some kind of legacy. In all three places, I was getting diminishing returns from the old path.

I've done this before (a startup in the late 90s called Cosource.com). And, as is often advisable with risk taking, I had carefully prepared again -- living below our means in order to save money for this day, building my skills and network, avoiding conflicts of interest that would limit my choices, etc.

And so, two or three years from now we may know whether this particular risk will pay off. But if it doesn't, that's ok. I try to keep my skills marketable, and my bridges intact. And I think that is heart of any advice around taking a risk: if you're prepared to succeed and prepared to fail, then you can leap without fear.

The greatest rewards go to the risk takers. Get prepared and go for it.