Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On macOS, why have an electron app when you can add the webpage to the dock as a PWA?


Here is the comparison:

Claude Electron app vs Claude Safari PWA

Pros:

* Can be opened with a customizable shortcut

* Takes less RAM (400 MiB < 600 MiB)

Cons:

* Needs to be downloaded

* Weight 150 MiB

* Slower to start

* Loose language localisation

* Loose Safari's capabilities:

  - Printing the content of the current page

  - Speech2Text

  - Accessibility

  - ...


The whole electron app uses less RAM than the page opened as a PWA? That’s surprising to me, how come? I somehow thought Safari was more memory efficient than Chromium


I was surprised, too, so I just checked. Sure enough, https://claude.ai takes 663MB.

I wonder if there’s an architectural difference that allows the Electron app to be more lean?

(Note I didn’t download the new app, just installed the PWA, so I didn’t verify those numbers.)


that's wild that essentially a website that's a few textboxes should take 600MBs+


The browser takes 663MB, or specifically the tab?


The Claude tab, itself. From Activity Monitor:

640.6 MB https://claude.ai

51.5 MB Claude

28.8 MB Claude Web Content

20.9 MB Open and Save Panel Service (Claude)

17.5 MB Claude Graphics and Media

15.5 MB Claude Networking

5.6 MB com.apple.Safari.SandboxBroker (Claude)

5.1 MB QuickLookUIService (Open and Save Panel Service (Claude))

---

If I open Claude in Safari, Safari itself is 204MB, and the Claude tab is 640MB.


Those numbers don’t add up to 640mb. If you have 10 Claude tabs open, you’re not using 6gigs of resident memory.


Insane, what could possibly take so much space?


I suppose I use the PWA differently than most people? I just leave it open all the time, so I don't care how long it takes to start or how much data it takes to download to boot.


It’s such a poorly designed PWA. They really failed to take advantage of any of the browsers storage mechanisms. Like why not put conversation history in indexedDB?


as a chrome PWA it's 259MB for me, vs ~700MB for the electron app.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: