5 ms·
Because if it uses the same browser binary as your other web apps (tabs or other DeskGap apps), the OS can share memory between them. Not possible with electron
by accatyyc 8y ago
Because if it uses the same browser binary as your other web apps (tabs or other DeskGap apps), the OS can share memory between them. Not possible with electron since every app bundles its own Chromium binary.
- TomMarius 8y agoThat is incorrect. Programs can't share memory just because they've been launched from the same binary. This is just reusing a DLL and saving disk space thanks to it.
- akdor1154 8y agoPretty sure they can on Linux at least.
- MrStonedOne 8y agoYou are confusing data memory and code memory.
- TomMarius 8y agoI am not, actually I am pointing out that the comment I replied to does.
- accatyyc 8y agoBoth code memory and data memory will be shared by any modern OS. The code memory will of course be shared since it's the same, and the data memory will be shared until modified. Then that memory page will be copied for the process that changed it (check out copy-on-write). And then there's disk memory, which isn't as important IMO but still it will of course be smaller since you don't ship the whole browser stack for each application.
- lozenge 8y agoShared memory is "a method of conserving memory space by directing accesses to what would ordinarily be copies of a piece of data to a single instance instead, by using virtual memory mappings or with explicit support of the program in question. This is most often used for shared libraries and for Execute in place (XIP)" according to Wikipedia.
- imtringued 8y agoI don't understand why you are talking about launching binaries. The entire point of this approach is to not launch a separate browser instance.
- goldenkey 8y agoYou are patently wrong. The primary advantage of DLLs is shared memory usage: https://docs.microsoft.com/en-us/windows/desktop/dlls/advantages-of-dynamic-linking https://docs.microsoft.com/en-us/windows/desktop/dlls/advant...
- accatyyc 8y agoOf course they can. This is what OS engineers have spent decades thinking about and optimizing. And then stuff like Electron appears and circumvents all those optimizations. Which is the main reason I dislike it.
- Fnoord 8y agoSure, but with sandboxing and technologies such as Firefox Containers, containers in general (such as Docker), and VMs (together with a secure enclave such as utilized in Qubes) it can all be thrown in the trash bin. Its just a matter of time until that's the norm. iOS is already on top of doing sandboxing well.
- hollerith 8y agoAre you claiming that when two apps on iOS use a webview, there are 2 copies of the system library implementing the webview in memory? If not, why are you appealing to iOS to help make your case?