Re: Re: PHP Annotations RFC + Patch
| From: | Stas Malyshev | Date: | Mon, 13 Sep 2010 20:51:32 +0000 |
| Subject: | Re: Re: PHP Annotations RFC + Patch | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49642@lists.php.net to get a copy of this message | ||
Hi!
If I'm not mistaken, the current implementation instantiates an object each time getAnnotation() is called, but it was proposed to change this into a lazy-loading mechanism with the same instance returned every time for each annotation. In that case, we'd only need to validate that one time.Object instances can't be bytecode-cached, so when are they instantiated? Does it mean it's stateful and mutable? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227