Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73951 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13423 invoked from network); 6 May 2014 08:13:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 May 2014 08:13:43 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.46 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.192.46 mail-qg0-f46.google.com Received: from [209.85.192.46] ([209.85.192.46:45013] helo=mail-qg0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7C/B1-04569-6B998635 for ; Tue, 06 May 2014 04:13:43 -0400 Received: by mail-qg0-f46.google.com with SMTP id q108so5973951qgd.33 for ; Tue, 06 May 2014 01:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dmiO3J5vf3gsUHEjmtnDF/fhuMGxPb4vgF+mocCRWxE=; b=db4Ao61MdfazfcU69NhutPNb6WKrax5SgvDcqpHiEO2Q8/t1t6Q32F+6iZrX6ECyjX 6Ddp+W1n2qLt/+0P0o7LkvbvFK2qlA1vLX2pa+XRexuV13x4XjwYwUWIXv61kpK5YAmm B+l1FQpj3zar1Ig+aR6Mkrq3czPyCQ+ZS1IRUFXYslLMTSUQfkgZaLBplDaKbpxGO8Hl w1K9bnJ7RAR9HOwU71W7stL1iSdBBDMpQCCM5enOH9utGokxjLsYwFxn1fPvG14UY/dF 0e2/LMpnSvr7WaYo/DvG2t8ezFyYZ36Jwrv3ZwgEayByEOalEOMzh20BriFSmlCsUxil r41w== MIME-Version: 1.0 X-Received: by 10.140.40.239 with SMTP id x102mr48367433qgx.16.1399364019885; Tue, 06 May 2014 01:13:39 -0700 (PDT) Received: by 10.140.47.231 with HTTP; Tue, 6 May 2014 01:13:39 -0700 (PDT) In-Reply-To: <53689833.2020304@sugarcrm.com> References: <53689833.2020304@sugarcrm.com> Date: Tue, 6 May 2014 10:13:39 +0200 Message-ID: To: Stas Malyshev Cc: Dmitry Stogov , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] phpng: Refactored PHP Engine with Big Performance Improvement From: pierre.php@gmail.com (Pierre Joye) On Tue, May 6, 2014 at 10:07 AM, Stas Malyshev wrote: > Hi! > >> It is hardly imaginable to release php 6 with strings length still >> using integer. The memory consumption has been shown to be minimal > > Why btw it would be unimaginable? I.e., how many PHP apps really need to > load strings of 2g+ size? I'm not advocating for not doing this, just > curious why it is that big of a deal. Because it is really a bad way to support 64bit architecture. Many compilers, analyzer or related tools can do a much better job when modern and clean typing are used, let alone the safe typing (no, using int for buffer length is not safe nor clean :). In the last thread about this topic we posted many external links to documentation or tutorials explaining in details why size_t and co should be used. If you are interested to go deeper in this topic, -- Pierre @pierrejoye | http://www.libgd.org