Re: New function proposal: spl_class_vars / params / contents
| From: | Lukas Kahwe Smith | Date: | Wed, 21 Jan 2009 11:44:22 +0000 |
| Subject: | Re: New function proposal: spl_class_vars / params / contents | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42744@lists.php.net to get a copy of this message | ||
On 21.01.2009, at 12:00, Karsten Dambekalns wrote:
Hi. On 21.01.2009 11:44 Uhr, Kenan R Sulayman wrote:yeah its a general problem .. but so far the decision has been that we should move away from adding more and more functions/methods for highly specialized cases (as in not continue in the get_class() etc. approach). now speeding up reflections is a very real issue .. suggestions in this regard are quite welcome. maybe offering a cache service as part of core is one approach .. regards, LukasI did propose the function because the construction in user-land is quite expensive;Reflection is expensive, indeed. The way we solved it for FLOW3 is to create a ReflectionService that caches such information as long as the source doesn't change.