久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    • <bdo id='EsuFi'></bdo><ul id='EsuFi'></ul>
    <tfoot id='EsuFi'></tfoot>
  • <small id='EsuFi'></small><noframes id='EsuFi'>

    <legend id='EsuFi'><style id='EsuFi'><dir id='EsuFi'><q id='EsuFi'></q></dir></style></legend>

        <i id='EsuFi'><tr id='EsuFi'><dt id='EsuFi'><q id='EsuFi'><span id='EsuFi'><b id='EsuFi'><form id='EsuFi'><ins id='EsuFi'></ins><ul id='EsuFi'></ul><sub id='EsuFi'></sub></form><legend id='EsuFi'></legend><bdo id='EsuFi'><pre id='EsuFi'><center id='EsuFi'></center></pre></bdo></b><th id='EsuFi'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EsuFi'><tfoot id='EsuFi'></tfoot><dl id='EsuFi'><fieldset id='EsuFi'></fieldset></dl></div>
      1. PHP 5 反射 API 性能

        PHP 5 Reflection API performance(PHP 5 反射 API 性能)

            <i id='CxhMU'><tr id='CxhMU'><dt id='CxhMU'><q id='CxhMU'><span id='CxhMU'><b id='CxhMU'><form id='CxhMU'><ins id='CxhMU'></ins><ul id='CxhMU'></ul><sub id='CxhMU'></sub></form><legend id='CxhMU'></legend><bdo id='CxhMU'><pre id='CxhMU'><center id='CxhMU'></center></pre></bdo></b><th id='CxhMU'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='CxhMU'><tfoot id='CxhMU'></tfoot><dl id='CxhMU'><fieldset id='CxhMU'></fieldset></dl></div>
              <tbody id='CxhMU'></tbody>

            <small id='CxhMU'></small><noframes id='CxhMU'>

            • <tfoot id='CxhMU'></tfoot>
                • <bdo id='CxhMU'></bdo><ul id='CxhMU'></ul>
                  <legend id='CxhMU'><style id='CxhMU'><dir id='CxhMU'><q id='CxhMU'></q></dir></style></legend>

                • 本文介紹了PHP 5 反射 API 性能的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我目前正在考慮在我自己的 MVC Web 框架中使用反射類(主要是 ReflectionClass 和 ReflectionMethod),因為我需要自動實例化控制器類并調用它們的方法而無需任何必需的配置(約定優于配置"方法).

                  I'm currently considering the use of Reflection classes (ReflectionClass and ReflectionMethod mainly) in my own MVC web framework, because I need to automatically instanciate controller classes and invoke their methods without any required configuration ("convention over configuration" approach).

                  我擔心性能,盡管我認為數據庫請求可能比實際的 PHP 代碼成為更大的瓶頸.

                  I'm concerned about performance, even though I think that database requests are likely to be bigger bottlenecks than the actual PHP code.

                  所以,我想知道從性能的角度來看,是否有人對 PHP 5 反射有任何好的或壞的經驗.

                  So, I'm wondering if anyone has any good or bad experience with PHP 5 Reflection from a performance point of view.

                  此外,我很想知道是否有任何一種流行的 PHP 框架(CI、Cake、Symfony 等)實際使用了反射.

                  Besides, I'd be curious to know if any one of the popular PHP frameworks (CI, Cake, Symfony, etc.) actually use Reflection.

                  推薦答案

                  別擔心.安裝 Xdebug 并確定瓶頸在哪里.

                  Don't be concerned. Install Xdebug and be sure where the bottleneck is.

                  使用反射是有成本的,但這是否重要取決于您在做什么.如果您使用反射實現控制器/請求調度程序,那么每個請求僅使用一次.絕對可以忽略不計.

                  There is cost to using reflection, but whether that matters depends on what you're doing. If you implement controller/request dispatcher using Reflection, then it's just one use per request. Absolutely negligible.

                  如果您使用反射實現 ORM 層,將其用于每個對象甚至對屬性的每次訪問,并創建數百或數千個對象,那么成本可能會很高.

                  If you implement your ORM layer using reflection, use it for every object or even every access to a property, and create hundreds or thousands objects, then it might be costly.

                  這篇關于PHP 5 反射 API 性能的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  MySQLi prepared statement amp; foreach loop(MySQLi準備好的語句amp;foreach 循環)
                  Is mysqli_insert_id() gets record from whole server or from same user?(mysqli_insert_id() 是從整個服務器還是從同一用戶獲取記錄?)
                  PHP MySQLi doesn#39;t recognize login info(PHP MySQLi 無法識別登錄信息)
                  mysqli_select_db() expects exactly 2 parameters(mysqli_select_db() 需要 2 個參數)
                  Php mysql pdo query: fill up variable with query result(Php mysql pdo 查詢:用查詢結果填充變量)
                  MySQLI 28000/1045 Access denied for user #39;root#39;@#39;localhost#39;(MySQLI 28000/1045 用戶“root@“localhost的訪問被拒絕)

                    <small id='e9X6y'></small><noframes id='e9X6y'>

                    1. <legend id='e9X6y'><style id='e9X6y'><dir id='e9X6y'><q id='e9X6y'></q></dir></style></legend>
                        • <bdo id='e9X6y'></bdo><ul id='e9X6y'></ul>

                              <tbody id='e9X6y'></tbody>

                            <tfoot id='e9X6y'></tfoot>
                            <i id='e9X6y'><tr id='e9X6y'><dt id='e9X6y'><q id='e9X6y'><span id='e9X6y'><b id='e9X6y'><form id='e9X6y'><ins id='e9X6y'></ins><ul id='e9X6y'></ul><sub id='e9X6y'></sub></form><legend id='e9X6y'></legend><bdo id='e9X6y'><pre id='e9X6y'><center id='e9X6y'></center></pre></bdo></b><th id='e9X6y'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='e9X6y'><tfoot id='e9X6y'></tfoot><dl id='e9X6y'><fieldset id='e9X6y'></fieldset></dl></div>
                            主站蜘蛛池模板: 天天干狠狠操 | 国产亚洲一区二区精品 | 一区免费看 | av性色| 国产97色| 亚洲综合视频 | 天天看片天天干 | 成人精品鲁一区一区二区 | 91精品国产91久久久久游泳池 | 亚洲一区日韩 | 二区三区视频 | 一区二区三区高清 | 久久久人成影片免费观看 | 日韩中文字幕 | 色影视| 亚洲一区二区电影网 | 日韩精品一区二区三区中文字幕 | 亚洲在线一区 | 国产精品日韩在线观看 | 日韩乱码一二三 | 欧美性网 | 亚洲精品久久久久中文字幕二区 | 麻豆精品国产91久久久久久 | 欧美性网| 久久视频一区 | 国产在线看片 | 国产成人一区二区 | 色婷婷综合久久久中字幕精品久久 | 在线观看av中文字幕 | 99国产精品视频免费观看一公开 | 秋霞在线一区二区 | 日批日韩在线观看 | 日韩欧美不卡 | 久久久久久免费观看 | 欧美视频一区二区三区 | 午夜视频在线观看视频 | 成人免费看黄网站在线观看 | 97精品超碰一区二区三区 | www.日韩| 9久久婷婷国产综合精品性色 | 成人国产精品久久久 |