Robert Cummings wrote:
On Wed, 2008-09-03 at 15:42 +0200, Per Jessen wrote:
alexander lind wrote:
I just tested my PHP app on Ubuntu 64bit, and found that all my php
scripts would consume about 5x more RAM memory there, compared to how
much they use on my macbook pro (which to make things a bit more
confusing also runs a 64bit OS).
A page that would take up around 2.5 MB on the macbook, takes around
12 MB on the linux server.
Does anyone know what might be causing this?
All pointers are twice the size, same goes for the runtime stack.
But he says it's 5 times the size :)
Cheers,
Rob.
I don't get it that people still think 64-bit is twice the 'size' of
32-bit. It's like saying 2 square meters is 2 times a square meter,
while actually it is 4 times a square meter.
So, 64-bits don't just take twice the memory, it can take up much more
than that. Like somebody else says, the integers take a lot of space, so
beware of typecasting properly......
--
Aschwin Wesselius
/'What you would like to be done to you, do that to the other....'/