Req #72224 [NEW]: Optimize reflection initialization
| From: | dmri87 at hotmail dot com | Date: | Mon, 16 May 2016 14:18:27 +0000 |
| Subject: | Req #72224 [NEW]: Optimize reflection initialization | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-201128@lists.php.net to get a copy of this message | ||
From: dmri87 at hotmail dot com
Operating system:
PHP version: 7.0.7RC1
Package: Reflection related
Bug Type: Feature/Change Request
Bug description:Optimize reflection initialization
Description:
------------
PHP should improve the creation of Reflection objects.
Almost literally any library or framework using Reflection non trivially
I've encountered implements its own Reflection objects caching
mechanism. That because creating such objects is incredibly expensive
and it's way more expensive than caching them all, even if thousands of
them. I had to do the same to keep performance acceptable.
PHP should do this internally if possible, or try to optimize something,
because again, the amount of times I've seen this is incredible and it's
a clear sign the creation of such object is just too slow.
Just to be clear (sorry if I sound harsh but I actually just want to be
clear) Reflection object's creation performance is a problem even for
those that are using it trivially. I don't think it's acceptable if the
creation of few dozens of these objects turns out to be an important
bottleneck for applications that would otherwise be extremely fast.
Thank you for reading and double thank you if you intend to work on
this.
--
Edit bug report at https://bugs.php.net/bug.php?id=72224&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72224&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72224&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72224&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72224&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72224&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72224&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72224&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72224&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72224&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72224&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72224&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72224&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72224&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72224&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72224&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72224&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72224&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72224&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72224&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72224&r=mysqlcfg