Re: [dev] [st] will global-less changes be wanted upstream?

From: Alexander Huemer <alexander.huemer_AT_xx.vu>
Date: Mon, 18 Aug 2014 01:02:11 +0200

On Sun, Aug 17, 2014 at 10:12:13PM +0200, Roberto E. Vargas Caballero wrote:
> On Sun, Aug 17, 2014 at 09:22:31PM +0200, q_AT_c9x.me wrote:
> > This is OS X specific and weird in my opinion, if you want multiple windows
> > lauch multiple processes. It is safer, you can limit the impact of a crash
> > to a single window. It is also memory efficient thanks to (haters gonna
> > hate) dynamic link.
>
> Sorry, it is efficient due to text sharing and, in some cases, to
> copy on write. When you run multiple instances of a static linked program
> usual OS make that all these process share the pages of the text segment.
> If all the process are spawn from a common parent then they also share
> data pages until they modified them (that sometime is never). you can see
> that dynamic linking doesn't help in this case (same instances of the
> same program). Dynamic libraries can help sharing pages between process
> of diferent executables.

I think this is a very nice summary of the situation. Are you maybe
aware of a webpage or some other text that describes this, maybe with
some code snippets, etc.?

Kind regards,
-Alex
Received on Mon Aug 18 2014 - 01:02:11 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 18 2014 - 01:12:07 CEST