Live data from Hacker News

Windows 11's built-in Weather app wastes more than 1 GB of RAM

notebookcheck.net

51–60 of 614 posts

Re: Windows 11's built-in Weather app wastes more than 1 GB of RAM

#51

Earlier quoted context omitted.

Mostly rendering. A bunch of images, text, UI elements. On a modern high resolution display it adds up quite quickly. You can surely cut it down a bit, but 100MB isn't absurd.

A weather widget using 8 bit color plus alpha on a 4k display show three full size images in 100mb. But I suspect that's not the ux we're talking about here, and a widget style system has no excuse.

Vector icons. It can be fit under 50MBs.

Re: Windows 11's built-in Weather app wastes more than 1 GB of RAM

#52

...you know, I keep reading all this stuff about memory prices, and it does suck, but memory is still much cheaper per gigabyte than it was ~15 years ago. Which matters because the things most consumers are doing on their computers haven't changed in the past 15 years. We browse the web, edit photos, message friends, and so on. AI generally runs on remote servers anyway. For years, everyone kept saying it was fine th…

But we went from 1080p monitors to 5k monitors and so we are pushing 7x the number of pixels and at roughly twice the bits per pixel.

Re: Windows 11's built-in Weather app wastes more than 1 GB of RAM

#53
post #40

This took me down a rabbit whole. Why can a simple single purpose app not be just a couple megabytes if not less? The popular options are electron 100MB+, or embedding python3 in your executable which is at least 40MB. But if you build it natively, you should have all of Microsoft tools at your disposition, dlls and such. In theory, this should allow you to make a 1 mb app or less. But in practice, it's the worse opt…

The visual assets alone will be tens of megabytes.

For a weather app, you should be able to get by with a couple base vectors you modify based on conditions.

Re: Windows 11's built-in Weather app wastes more than 1 GB of RAM

#54

This took me down a rabbit whole. Why can a simple single purpose app not be just a couple megabytes if not less? The popular options are electron 100MB+, or embedding python3 in your executable which is at least 40MB. But if you build it natively, you should have all of Microsoft tools at your disposition, dlls and such. In theory, this should allow you to make a 1 mb app or less. But in practice, it's the worse opt…

Pictures and frame buffers. If you're running fullscreen at 4k, you're probably gonna take two roughly 3840x2160x3 byte frame buffers for the window. Your designers want a background image which moves as you scroll in some parallax style; that's over 3840x2160x3 bytes more for the pixel buffer backing the image layer. And let's say roughly 50% of your screen is text with subpixel (aka full color) anti aliasing; that means another 3840x2160x3x0.5 bytes for the pre rendered text.

3840x2160x3x3.5. That's 87MB, in pixel data only. And it's a very minimal example; for the parallax image, you're gonna want the image to be significantly taller than the window; you're gonna want a ton of smaller (tho still high DPI) images for icons; a few different font atlases for different font faces you've loaded at once; maybe pre rendered pixel buffers for all sorts of UI components; etc.

And lord help you if your designers want any part of this to be animated.

(I'm playing a bit fast and loose with what lives on the GPU and what lives on the CPU here. On many systems, they share a memory pool anyway. But on systems with discrete GPUs, most of this is gonna be video memory. Though applications may wanna store CPU-side copies as well for various reasons.)

Re: Windows 11's built-in Weather app wastes more than 1 GB of RAM

#55
post #9

This article seems to be underestimating how much RAM a weather app should take. A well thought-out, native Weather app wouldn't take more than 100 mb of RAM.

What is the weather app doing that it requires 100MB? For such a simple application, that seems excessive.

I think this depends on your location, because in some places you really want to view a radar map. "Rain in $CITY" is practically useless for me. Still, the (static?) map in the depicted app shouldn't take 1GB.

Re: Windows 11's built-in Weather app wastes more than 1 GB of RAM

#56
post #25

> By comparison, Apple's native Weather app on macOS reportedly uses less than 250 MB of RAM That's also bloated, couldn't they find a better comparison to illustrate the egregious waste?

I built a weather app for myself fetching ECMWF ensemble forecasts for my home location. Running the service is 60mb plus data 39mb and another 2mb for the spaghetti charts showing temperature, clouds, precip, wind over 10 days. What do I need to do to fill the other 900mb?

Re: Windows 11's built-in Weather app wastes more than 1 GB of RAM

#57
post #40

Earlier quoted context omitted.

The visual assets alone will be tens of megabytes.

For a weather app, you should be able to get by with a couple base vectors you modify based on conditions.

On disk yeah, sure. But you're gonna render them into a pixel buffer which lives in memory.

Re: Windows 11's built-in Weather app wastes more than 1 GB of RAM

#58
post #8

Earlier quoted context omitted.

Microsoft absolutely doesn't need it, but I'm guessing the weather app team (or the core filler apps team or whatever team is responsible for it) needs it to juice a metric to make some middle manager happy. And it makes the middle manager happy because it lets that middle manager report better numbers to their superiors again. Etc. It's why all large dysfunctional organisations do self destructive stuff like this.

“What value are you bringing to the company?” translates to “if you’re not printing money, you lose your job.”

Any manager who doesn't push back when given a perverse incentive should be fired. They are not leaders, they are followers... And not even very good followers.
Post reply on HN