Lean code: Avoid Flash

Dec 22, 2009 10:19

I'm a believer in lean code, and in particular Lightweight Linux software. Lower CPU use means lower energy use, and lean code also means you can choose more lightweight and affordable hardware. I've been frustrated that on Crunchbang Linux, which is designed to be lean, and which has a very low RAM and CPU usage when it starts up, I still use so much RAM and CPU when I have my browser running. This also makes it runs hot, and after spending 8 months in the tropics in the past year, where overheating caused many, many crashes, it finally cooked my battery. I know I tend to have way too many tabs open in Firfox, often more than 60, or even 100, and this is a big part of it. But here's a revelation to me: Flash was the biggest part of my problem. Firefox had become ridiculously slow and was affecting my productivity. I tried Chrome for Linux but it's not quite working right yet. Then I turned off my flash plugin in Firefox:

Tools > Add-ons > Plugins > Shockwave Flush > Disable  
and instantly it's about 3 times as fast, and my laptop runs much cooler. I have to open some other sites, e.g. YouTube, in a different browser, but that's a minor issue. I'm productive again. I'm so looking forward to HTML 5, which makes Flash unnecessary. I just wish I'd discovered it before I'd cooked my battery.

Edit: Apparently there are cool add-ons like Flashblock extension, and perhaps Noscript & Control, that let you control which flash elements play, and set defaults for some sites. That's awesome and I'll try that. For now, I'm just happy being able to get stuff done without waiting for tabs to unfreeze.

linux, lean code, sustainability

Previous post Next post
Up