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

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

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

      1. 將 Zend Framework 用于高負載項目

        Using Zend Framework for highload projects(將 Zend Framework 用于高負載項目)
            <bdo id='Bv6NH'></bdo><ul id='Bv6NH'></ul>

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

                <legend id='Bv6NH'><style id='Bv6NH'><dir id='Bv6NH'><q id='Bv6NH'></q></dir></style></legend>
                • 本文介紹了將 Zend Framework 用于高負載項目的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  Zend Framework 是一個很好的框架,但速度不是很快.您能否判斷將 Zend Framework 用于高負載項目是否值得,例如,對于可能包含大約十或數(shù)千名用戶的電子郵件營銷服務?使用 Zend Framework 是否可以達到可接受的性能?有人有這樣的經(jīng)歷嗎?非常感謝.

                  解決方案

                  就我所見,對 Zend Framework 性能的最終防御和性能優(yōu)化建議來自 Padraic Brady:

                  PHP 框架基準:有趣但最終沒用

                  特別要注意他關于性能優(yōu)化的四項建議:

                  <塊引用>

                  1. 不要使用 Zend_Application.雖然 Zend_App 非常適合在標準化結構中創(chuàng)建一致的復雜引導程序,但它對基線性能的影響也很大.更直接的引導程序(ZF 在 Zend_App 到來之前是典型的)要快得多,而且無需配置文件即可完成.

                  2. 跳過使用 ViewRenderer 插件.如果沒有 ViewRenderer,您需要手動配置 Zend_View 并向控制器添加 render() 調用.這實際上非常簡單,而且速度相當快 - 速度從來都不是 ViewRenderer 遺傳學的真正組成部分.

                  3. 使用自動加載.從框架庫中去除 require_once 調用,以便忽略不需要的文件.用一個不那么瘋狂的自動加載器函數(shù)替換 Zend_Loader_Autoloader 的使用.事實上,祈禱 Zend_Loader 永遠不會被使用——它執(zhí)行了很多文件操作,迄今為止,我從未向我解釋過這些操作具有任何價值.

                  4. 預加載所有內容(Symfony 2 Preview 可以!).它會為您購買一些性能 cookie 并平衡速度基線.使用簡單的預加載腳本并不難.

                  Zend Framework is a good framework but not very fast. Can you tell whether it's worth using Zend Framework for highload projects, for example, for email marketing service that can inlude about ten or houndred thousand of users? Is it possible to achive acceptable performance using Zend Framework? Has anybody such an expirience? Thank you very much.

                  解決方案

                  For what I have seen, the definitive defense of Zend Framework performance and recommendations for performance optimization comes from Padraic Brady at:

                  PHP Framework Benchmarks: Entertaining But Ultimately Useless

                  In particular, note his four recommendations for performance optimization:

                  1. Don't use Zend_Application. While Zend_App is great for creating consistent complex bootstraps within a standardised structure, it doesn't come without a significant performance hit to baseline performance. A more direct bootstrap (typical of ZF until Zend_App arrived) is far faster and can also be done without configuration files.

                  2. Skip using the ViewRenderer plugin. Without the ViewRenderer, you need to manually configure Zend_View and add render() calls to Controllers. This is actually very simple to do and is fairly fast - fast was never really part of the ViewRenderer's genetics.

                  3. Use autoloading. Strip require_once calls from the framework library so unneeded files are ignored. Replace uses of Zend_Loader_Autoloader with a not-so-crazy autoloader function. In fact, pray Zend_Loader is never used - it does a lot of file ops that, to date, have never been explained to me as having any value.

                  4. Preload everything (Symfony 2 Preview does!). It buys you some performance cookies and equalises the speed baseline. Using a simple preload script is not that hard.

                  這篇關于將 Zend Framework 用于高負載項目的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)
                  <i id='tD2LF'><tr id='tD2LF'><dt id='tD2LF'><q id='tD2LF'><span id='tD2LF'><b id='tD2LF'><form id='tD2LF'><ins id='tD2LF'></ins><ul id='tD2LF'></ul><sub id='tD2LF'></sub></form><legend id='tD2LF'></legend><bdo id='tD2LF'><pre id='tD2LF'><center id='tD2LF'></center></pre></bdo></b><th id='tD2LF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tD2LF'><tfoot id='tD2LF'></tfoot><dl id='tD2LF'><fieldset id='tD2LF'></fieldset></dl></div>

                • <legend id='tD2LF'><style id='tD2LF'><dir id='tD2LF'><q id='tD2LF'></q></dir></style></legend>
                  • <small id='tD2LF'></small><noframes id='tD2LF'>

                      <bdo id='tD2LF'></bdo><ul id='tD2LF'></ul>
                      <tfoot id='tD2LF'></tfoot>

                              <tbody id='tD2LF'></tbody>
                            主站蜘蛛池模板: 成人午夜免费福利视频 | 久久新| 亚洲国产一区二区三区在线观看 | 热久久性| 亚洲免费在线视频 | 在线欧美小视频 | 欧美性乱 | 在线免费观看黄网 | 亚洲人a | 自拍视频精品 | 日韩精品免费 | 日韩成人免费视频 | 国产精品美女久久久av超清 | 99精品欧美一区二区三区综合在线 | 国产在线一区二区 | 国产精品视频一区二区三 | 欧美日韩视频在线 | 自拍视频国产 | 日韩a在线 | 欧美日韩国产一区二区三区 | 韩日一区| 久久网一区二区三区 | 欧美视频三区 | 国产日韩av一区二区 | 亚洲精品二区 | 久久99国产精一区二区三区 | 亚洲成人精选 | 成人av一区| 成人一级片在线观看 | 中文字幕免费中文 | 91视频在线看 | 国产一区二区三区网站 | 九色在线视频 | 国产精品成人一区二区三区 | 亚洲在线免费 | 人人澡人人射 | 一区二区三区亚洲视频 | 亚洲精品国产综合区久久久久久久 | av网站观看| 国产精品 欧美精品 | 99久久婷婷国产综合精品首页 |