Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:72301 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88297 invoked from network); 5 Feb 2014 22:12:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2014 22:12:31 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@hristov.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@hristov.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain hristov.com from 91.196.124.214 cause and error) X-PHP-List-Original-Sender: php@hristov.com X-Host-Fingerprint: 91.196.124.214 more.superhosting.bg Linux 2.6 Received: from [91.196.124.214] ([91.196.124.214:45854] helo=more.superhosting.bg) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/E9-38005-C47B2F25 for ; Wed, 05 Feb 2014 17:12:30 -0500 Received: from 78-83-82-27.spectrumnet.bg ([78.83.82.27]:46802 helo=[192.168.2.67]) by more.superhosting.bg with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1WBAhk-0006OQ-LR; Thu, 06 Feb 2014 00:12:24 +0200 Message-ID: <52F2B748.4000402@hristov.com> Date: Thu, 06 Feb 2014 00:12:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Anatol Belski CC: internals@lists.php.net References: <52F0E8CF.7090501@hristov.com> <0681aaa573a34b3e07e246e7f88efbab.squirrel@webmail.klapt.com> <52F10D11.1090703@hristov.com> <647013700aff31d909f00714fde3c8d8.squirrel@webmail.klapt.com> In-Reply-To: <647013700aff31d909f00714fde3c8d8.squirrel@webmail.klapt.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - more.superhosting.bg X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Get-Message-Sender-Via: more.superhosting.bg: authenticated_id: php@hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] 64 bit RFC, #2 and #3 yes From: php@hristov.com (Andrey Hristov) 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