Re: 64 bit RFC, #2 and #3 yes

From: Date: Wed, 05 Feb 2014 22:12:24 +0000
Subject: Re: 64 bit RFC, #2 and #3 yes
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-72301@lists.php.net to get a copy of this message
Anatol,

There might be more, I gave a glance look at it. I'm curious to see how much memory real scripts will use with the branch.
In fact, while 64 bit programs take more memory that 32 bit ones, the exact advantage of the 64 bit systems is that the amount of that memory is bigger. So comparing a program on 32 bit system with 2G (without extensions) and the same program on 64 bit system with 8G memory - while the program size itself increases, the relative increase opposing to the system memory is smaller. Significant memory increase is only to expect when using huge amounts of data split into small pieces, say you have millions of string buffers of 3 byte length - in that case it'll need the same amount of pointers which are 4 vs 8 bytes big on 64 bit. Stack variables are of less importance for that.
I meant on 64 bit vanilla PHP vs the branch
Regards Anatol
Andrey

Thread (7 messages)

« previous php.internals (#72301) next »