Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85444 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 19564 invoked from network); 24 Mar 2015 11:51:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Mar 2015 11:51:34 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.179 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 74.125.82.179 mail-we0-f179.google.com Received: from [74.125.82.179] ([74.125.82.179:32954] helo=mail-we0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/D0-12194-5CF41155 for ; Tue, 24 Mar 2015 06:51:34 -0500 Received: by weop45 with SMTP id p45so161239590weo.0 for ; Tue, 24 Mar 2015 04:51:30 -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=plFznZiG97fS2mlOZilHG52PFqUyElBK+tRYQNQ4vDQ=; b=E8lQ2YlzTt2DvTSQ5SNuHrsNbvr4bKrUz8TvmnqcI31MHyAbpzgCu+/xO4VM7uhmrl R63+Etb1I3aRwoE6jn7JoSw5+4rD2+tnWyPXmmMhzT7vKbJasTm16tGohkX7L2mHO/I5 GSFukSpbyaD0O5u28S9CBdlb6eKs93cC3N525pGFXI6WTkGYgHJpkgbSy8FmPdATGIBz YHdX1wDCYGMlnDDLsUTFX9ZuOsnlcBF2WWdFT3N5bfGVzKyxzMDX0xZ6jewwrSxDr9SJ 67ASyMMwxKQehr3RGiWyxap575vZAiHL+QXAGe1axSIRr/fi2jZlKdjfVBLFOrBIFA4s 41zg== MIME-Version: 1.0 X-Received: by 10.194.76.69 with SMTP id i5mr7394707wjw.3.1427197890324; Tue, 24 Mar 2015 04:51:30 -0700 (PDT) Received: by 10.27.10.193 with HTTP; Tue, 24 Mar 2015 04:51:30 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Mar 2015 12:51:30 +0100 Message-ID: To: Dmitry Stogov Cc: Xinchen Hui , Joe Watkins , PHP Internals Content-Type: multipart/alternative; boundary=047d7bb042be46f14005120767a7 Subject: Re: Use "ropes" for string concatenation From: nikita.ppv@gmail.com (Nikita Popov) --047d7bb042be46f14005120767a7 Content-Type: text/plain; charset=UTF-8 On Tue, Mar 24, 2015 at 10:28 AM, Dmitry Stogov wrote: > I thought about something like this :) > In my opinion UString is really not a proper way to implement Unicoide, > but I agree not break anything in current stage. > Anyway, please review the first PR (in my opinion it is safe to commit), > but you may find some other issues. > > Thanks. Dmitry. > First PR looks okay to me. One question: Why the separate INIT and ADD opcodes? They seem pretty much the same, just one using a hardcoded 0 instead of ex_val. Regarding exception-safety - is the problem that doing an EG(exception) check and releasing the rope is too expensive? Nikita --047d7bb042be46f14005120767a7--