4 ms·
That is a fair summary, though the post is about the process more than the conclusion. A similar solution to the Windows one is available for Linux and is call
by tasn 10y ago
That is a fair summary, though the post is about the process more than the conclusion.
A similar solution to the Windows one is available for Linux and is called prelink, but cool to know Windows does it by default.
I haven't heard about zygote, it's quite an elegant solution and probably ends up sharing more than just the pages in the case mentioned in the post, so even more memory saves. I wonder though about the security implications here, because it essentially means that every unprivileged process knows the address layout of all the other processes (the same). This means that a local process could more easily exploit a system process (essentially an ASLR bypass), and in some cases maybe even enable remote remote bypass.
Edit: reading it again, it seems only user applications, and not system applications fork from zygote, so I guess the implications are much less serious.