Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:85445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21255 invoked from network); 24 Mar 2015 11:58:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Mar 2015 11:58:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=laruence@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=laruence@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.43 as permitted sender) X-PHP-List-Original-Sender: laruence@gmail.com X-Host-Fingerprint: 209.85.215.43 mail-la0-f43.google.com Received: from [209.85.215.43] ([209.85.215.43:34898] helo=mail-la0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/31-12194-67151155 for ; Tue, 24 Mar 2015 06:58:46 -0500 Received: by laae1 with SMTP id e1so25254960laa.2 for ; Tue, 24 Mar 2015 04:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Z7r/QgugnXe5Ai0K1jt/0vX1/0Q/g7CnjHtHIh0/GyQ=; b=YX4rbu4ILb7ixk1MH7vsHeqxrdD8UwKipew/b+q4c4opuP184lInC8D2zCTdR4r46t LWoXMaItMUXu6M9u0G8WLaNJK4XxU09s6oC2gJMv9U2cIPTLD+BlD2FfvPBTFvA9C6DI 0+vaLmWzYuP5KaEc2O5dBw1Sk5SSs5zBDabKt/j9lhX2/rmLPBsMCGNGkkEq6Fz2BBg/ WUzIkDv+fnxS32vsxUeOXhKLiFBpRU7qh6lvFlAsLw9AR08jc/mz0op4+NfEeglYBT0q U6287nG+l9i4NC+VJ4RD43wdIJla8E0rxGUVJdiNwcFnaNBwG/N5g7cyxe8sJCOvf8Wc 0KSA== X-Received: by 10.112.51.35 with SMTP id h3mr3309442lbo.113.1427198323246; Tue, 24 Mar 2015 04:58:43 -0700 (PDT) MIME-Version: 1.0 Sender: laruence@gmail.com Received: by 10.114.203.39 with HTTP; Tue, 24 Mar 2015 04:58:22 -0700 (PDT) In-Reply-To: References: Date: Tue, 24 Mar 2015 19:58:22 +0800 X-Google-Sender-Auth: 2Hu8artxCACQO0IKz-fY9QYZ42Y Message-ID: To: Nikita Popov Cc: Dmitry Stogov , Joe Watkins , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: Use "ropes" for string concatenation From: xinchen.h@zend.com (Xinchen Hui) Hey: On Tue, Mar 24, 2015 at 7:51 PM, Nikita Popov wrote: > 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? that won't work if : > Nikita -- Xinchen Hui @Laruence http://www.laruence.com/