Live data from Hacker News

Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

bugzilla.mozilla.org

321–330 of 443 posts

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#321

Earlier quoted context omitted.

Then why are comments assuming a large decrease in power consumption?

Because the bug is a frequent occurrence and the increased CPU usage is frequently noticeable?

Except it's not lol

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#322

Quick napkin math of the wasted power : Firefox has ~300e6 users, let's assume the bug wasted 5 extra watts 4 hours a day. That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug.

I have been hoping for many years that global warming would force devs to go back to a time of creating fast and efficient software in order to help the environment.

Unfortunately devs dont realize how needlessly power hungry software is when they don't need to be. But hey, its easier to use electron and javascript than it is to save the planet.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#323
post #143

If you're on a Mac and using FF (probably not FF specific), turning off "ambient mode" in youtube can save 30% cpu. I just found this out while searching why FF was taking 90% of my cpu while watching youtube videos in normal mode, but went down to 40% use if viewing in full screen. Turns out that this youtube "ambient mode" was the culprit. My lap is now cooler and the fan doesn't turn on anymore. I wonder how much…

Or stop using the crap YT frontent entirely - https://yewtu.be

Run your own alternate frontend - https://github.com/iv-org/invidious

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#324

Earlier quoted context omitted.

A bagel is a first-degree pretzel.

For those people unfamiliar with a pretzel, imagine eating something that is making you thirsty.

For those of you unfamiliar with eating, it's similar to photosynthesis, but with matter instead of sunlight.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#325
post #170

Earlier quoted context omitted.

That's actually fairly clear in the title - the second clause depends upon the first.

Then why are comments assuming a large decrease in power consumption?

Because a lot of commenters don't read the articles

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#326

Quick napkin math of the wasted power : Firefox has ~300e6 users, let's assume the bug wasted 5 extra watts 4 hours a day. That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug.

> That's 250 megawatts saved, the equivalent of an average coal power plant. Because some Microsoft engineer missed a bug. Are you sure you want to invoke this logic? Because following it through imagine the energy savings if Firefox users switched to Chrome.

Now do one for javascript.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#327

Earlier quoted context omitted.

For example, it only took 20 years (!!) to stop Ctrl+Q from quitting Firefox on Linux. :) IIRC, a couple of patches did get submitted, but never accepted for unknown reasons.

Isn't Ctrl-Q quitting the program normal and expected behavior? For example, right now on Firefox 111, I can see in the File menu that the "Quit" option has the keyboard shortcut Ctrl-Q. I'm fairly sure it works.

On linux, I'd want it to be dictated by my DE or WM. I have Super+shift+q set to close windows on my machine, so I wouldn't be crazy about software adding its own keybind to do the same.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#329

It's so frustrating this discussion took five years . I'd be grateful for an overview of the bug. I don't think I've seen it on my two systems but I can't be confident.

Five years is nothing for MS. You should see how long the bug in File Explorer has been there, where after navigating to a folder and pressing the down arrow, the second item is selected instead of the first. And it's one of those things that, even though I'm aware of it, it still always catches me causing extra keystrokes. It's like they're trying to force me to use the mouse for some reason.

I think you can press Space to select the first item.

Re: Microsoft fixes 5-year-old Defender bug, reducing Firefox-related CPU use by 75%

#330

Earlier quoted context omitted.

Around 80% of Firefox users are on Windows, per https://data.firefox.com/dashboard/hardware That same site also suggests that Firefox has around 200e6 monthly active users, the average user uses Firefox 3.5 days a week, and for 5.5 hours per day. My math could be wrong, but taking the above into account, and arnaudsm's 5 W estimate, I come up with an upper bound of around 80 MW. Discount that further by whatever prop…

Wow, that's fascinating. It really speaks to the utter dominance of Windows over Linux more than anything else. Like even among Firefox users, as of last year , there were an order-of-magnitude more Windows 7 and 8 users than Linux 5.x users.

Similar numbers can be seen with Steam demographics: Linux is nothing compared to Windows 7, to this day.
Post reply on HN