Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:76987 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 384 invoked from network); 31 Aug 2014 12:12:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Aug 2014 12:12:51 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.177 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.177 mail-qc0-f177.google.com Received: from [209.85.216.177] ([209.85.216.177:55327] helo=mail-qc0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D2/E0-30065-24113045 for ; Sun, 31 Aug 2014 08:12:50 -0400 Received: by mail-qc0-f177.google.com with SMTP id i8so4348933qcq.36 for ; Sun, 31 Aug 2014 05:12:47 -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=SpKPa5phHkKKxsD/hCKceNwFtW3xAaoM+MvXXjQCxt8=; b=xSEglMsqRYaYklil6zlxipx483eioEij0Hu0V0sY10GV+lOtncGVTPEbYIMrQZ2eD2 S7N1SND/YpXetU/mXnAR606JH1fdScpgO8hiE//ILfKukW+XUOJ2NW/xMySgTDyzQAs/ wXZzz9Lh14hUBAVCuqQpMgMwbgTmGeJXUTwNGy0HzzceJv/tHdXpcXhG6IbTKrAAD2gp rIEAZOHpoN3pMKF3iyWXcdYv7JFD02hnb9kaDaUPFHO5h3oCj+ZMn/lQ4kIuEqGzDwio JWEzNtbVoEu5jBWiM86mciyCP1sGDtlYZT/K5U6sq1c73gU7xiCKMFRW+JI9klXZbq6s H1Ig== MIME-Version: 1.0 X-Received: by 10.224.129.1 with SMTP id m1mr36282761qas.0.1409487167670; Sun, 31 Aug 2014 05:12:47 -0700 (PDT) Received: by 10.140.95.146 with HTTP; Sun, 31 Aug 2014 05:12:47 -0700 (PDT) Received: by 10.140.95.146 with HTTP; Sun, 31 Aug 2014 05:12:47 -0700 (PDT) In-Reply-To: References: <2afc5a878ff4c780c74f4604f77525c1.squirrel@webmail.klapt.com> Date: Sun, 31 Aug 2014 14:12:47 +0200 Message-ID: To: Anatol Belski Cc: Dmitry Stogov , PHP internals , Nikita Popov , Xinchen Hui Content-Type: multipart/alternative; boundary=001a11c23276f1f7030501ebcdce Subject: Re: [PHP-DEV] Re: 64 bit string offsets From: pierre.php@gmail.com (Pierre Joye) --001a11c23276f1f7030501ebcdce Content-Type: text/plain; charset=UTF-8 Hi Anatol, Thanks! For what I see it should have no impact, either mem usage or perf but when such offset is used, in 64bit. However some numbers are better, could you provide some using exclusively this syntax and using common apps pls? Only to be sure. Cheers, Pierre On Aug 31, 2014 1:57 PM, "Anatol Belski" wrote: > On Fri, August 29, 2014 18:34, Xinchen Hui wrote: > > On Fri, Aug 29, 2014 at 11:49 PM, Anatol Belski > > wrote: > > > >> Hi, > >> > >> > >> while refining the big string support, it turned out that we've an > >> issue. The syntax like $s[42] = 'x'; is currently inconsistend, because > >> we have uint32 for string offsets. This actually means, the behaviour is > >> currently only available in the old style and can handle not more than > >> 2gb big > >> strings. > >> > >> Also discussed with Laruence on IRC and he actually expressed the > >> concern that we pay overhead on that. From my side I was investigating > >> on that and could suggest several solutions for that: > >> > >> - stay with the old behavior (indexes would be able to handle only 2gb > >> strings, this is the status quo) > > > > I think it's okey. maybe throw a warning if it's bigger than 32bits? > > > > > > Here's a patch http://belski.net/phpz/64_str_offset.patch fixing the the > 64 bit offsets. Please take a look, maybe we'd have a perspective with it. > So far the test suite tells no difference. > > Thanks > > Anatol > --001a11c23276f1f7030501ebcdce--