logoalt Hacker News

fakwandi_privyesterday at 7:43 PM2 repliesview on HN

> According to Windows Latest, the high memory consumption is due to the fact that Weather is not a fully native Windows application. Instead, it is essentially an MSN Weather web app built on Microsoft's WebView2 framework.

I wonder how this approach is having such an high reduction in memory usage compared to what’s stated in the article. I would assume both use the exact same WebView here.

The only explanation here that I can think of would be that the “Add an application” starts it under an existing Edge process which shares it’s memory instead of completely isolated.


Replies

Scharkenbergyesterday at 9:57 PM

Yes, using an already-running Edge instance saves a bunch of memory. Also, this approach has the advantage of allowing all of your browser extensions to modify your Web-App experience. WebView2 doesn't relay Edge extensions.

smileybarryyesterday at 11:13 PM

WebView2 has some memory optimizations across several WebView2 instances, so it should save memory once you have multiple WebView2 apps running.