Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:92741 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64083 invoked from network); 25 Apr 2016 17:13:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Apr 2016 17:13:45 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.47 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.47 mail-wm0-f47.google.com Received: from [74.125.82.47] ([74.125.82.47:38461] helo=mail-wm0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/AB-00233-6405E175 for ; Mon, 25 Apr 2016 13:13:42 -0400 Received: by mail-wm0-f47.google.com with SMTP id u206so138222119wme.1 for ; Mon, 25 Apr 2016 10:13:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=Wwwb/Pa66lPlMkTjQuRjDnBrJi6yF4wJI9dJ928n0+4=; b=s/t3RbsKnD8RRlCn6PAw71TKHQctxIEzwKahvDZ2ME/dKy/uMN0TBPhd7Xoj1HoxDS ONs3Elp8BLf5iJeFjIskL/zODOwcrZJ9GUNOmQUwUy6wyYQAQ3/7UMXvYhm3lM6GFYvF YKfwQpuvUEBW9EZaFdS8TuQytt0XRuLf8ukwtTcuWvabzcHUPqdV2cxBwEfB00km5soR bOPTQaQpaLByQ1rp2JhSf2xegmVno2PN0ElThWidpx+PoY6aePJkW+N3V9Nn11COuv/W pVKh/5b8KyifcqAgg/kK+xsptxEJN46e5fvQoMVMiw7akpBvdt1svFynlBb7Y1yZtfzm rK9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=Wwwb/Pa66lPlMkTjQuRjDnBrJi6yF4wJI9dJ928n0+4=; b=FI2Npi/TXeDg0C+4HPWxtTFRhJgw38uIYNfCT49qZJqKeEz/vXS9aQKzIMMTVzPeq7 T+CyT4Yjk2KT79N84YlOKscHG/+Kk18bK65s68wPKQgVEat2sZSfqQUEjBXAP5Gueqvv 4MsIXzBrC8zy6sLUDGjB2Al1TElcNcBckYY5NXIgl96A/o9kr+C9l4tbyucETrU/opPk IG9wxo941dsg4CxDFgDi2ZraRRadctFudL5R8xwlrOMpVLMr4T4gJrYnRpZkU+1ctkOB GQeVOs1Yeop89jHc9ogb7F9pTEVc1yxXyyAqKvNbjfr6aKSK7L2qEI13LzbY3o7vJz9L xcFQ== X-Gm-Message-State: AOPr4FXTHGKXsI7do7pEgJU7OPLyteUQdSRFH4U+ZJwYRB5JY7HipO6GtBRhyEuxpsrnPw== X-Received: by 10.28.102.8 with SMTP id a8mr13982494wmc.54.1461604419099; Mon, 25 Apr 2016 10:13:39 -0700 (PDT) Received: from [192.168.0.82] ([93.188.182.58]) by smtp.googlemail.com with ESMTPSA id lh1sm24545157wjb.20.2016.04.25.10.13.38 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Apr 2016 10:13:38 -0700 (PDT) To: internals@lists.php.net References: <571965D1.9020102@zend.com> <5719CDB2.90103@zend.com> <571DCA6A.2070803@zend.com> Message-ID: <571E4FC6.9000602@gmail.com> Date: Mon, 25 Apr 2016 18:11:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] PHP Attributes From: rowan.collins@gmail.com (Rowan Collins) guilhermeblanco@gmail.com wrote on 25/04/2016 15:22: > Another thing that looks odd to me i that every time you call new > ReflectionClass, a new reflection_object gets created. > Isn't there a way to get this "cached" somehow in zend_class_entry? I recently came upon a package that exists solely to work around this: https://packagist.org/packages/fsi/reflection I am reminded of the fact that people often say "reflection is slow, use it with care". Is this still the case? Does this limit the usability of attributes as proposed? Regards, -- Rowan Collins [IMSoP]