<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">That's still not bad, but what were the problems that you faced when turning the structure from an XML_Tree object into a plain array?<div><br><div><div>On Feb 25, 2008, at 6:16 AM, Mark Wu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"> <div dir="ltr" align="left"><span class="069471404-25022008"><font face="新細明體" color="#0000ff" size="2">Hi Oscar:</font></span></div> <div dir="ltr" align="left"><span class="069471404-25022008"><font face="新細明體" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="069471404-25022008"><font face="新細明體" color="#0000ff" size="2">In my test, it reduce the total request time from 534 ms to 440 ms. It saved almost 100ms in my installation.</font></span></div> <div dir="ltr" align="left"><span class="069471404-25022008"><font face="新細明體" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="069471404-25022008"><font face="新細明體" color="#0000ff" size="2">So, I think it worth to try ... :)</font></span></div> <div dir="ltr" align="left"><span class="069471404-25022008"><font face="新細明體" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="069471404-25022008"><font face="新細明體" color="#0000ff" size="2">Mark</font></span></div><br> <blockquote dir="ltr" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <div class="OutlookMessageHeader" lang="zh-tw" dir="ltr" align="left"> <hr tabindex="-1"> <font face="Tahoma" size="2"><b>From:</b> plog-svn-bounces@devel.lifetype.net [<a href="mailto:plog-svn-bounces@devel.lifetype.net">mailto:plog-svn-bounces@devel.lifetype.net</a>] <b>On Behalf Of </b>Oscar Renalias<br><b>Sent:</b> Thursday, February 21, 2008 4:58 AM<br><b>To:</b> LifeType Developer List<br><b>Subject:</b> Re: [pLog-svn] Add the cache control to menu<br></font><br></div> <div></div>How about some benchmarks? Would you have some time to look into generating some benchmarks? Numbers don't lie :) <div><br> <div> <div>On Feb 19, 2008, at 6:59 AM, Mark Wu wrote:</div><br class="Apple-interchange-newline"> <blockquote type="cite"> <div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008">Hi All:</span></font></div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008"></span></font> </div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008">After review the code, it is not easy to replace the current XML menu with array tree. </span></font></div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008"></span></font> </div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008">So, I try to add the cache to XML menu first.</span></font></div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008"></span></font><font face="f0g40fi+" size="2"><span class="278425104-19022008"></span></font> </div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008">1. The menu cache will cache our core xml menus plus plugins' menus. After lifetype cache it, the menu will load from cache directly until the cache expired or deleted.</span></font></div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008"></span></font> </div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008">2. If the method works, I will add remove cache in plugins centers. Therefore, the cache will removed when we add/remove/refresh the plugins center.</span></font></div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008"></span></font> </div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008">If any one of you have time, please kindly test this cached version script, and let me know if it help performance or not.</span></font></div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008"></span></font> </div> <div><font face="f0g40fi+" size="2"><span class="278425104-19022008">Regards, Mark</span></font></div></div><span><menu.class.php></span>_______________________________________________<br>pLog-svn mailing list<br><a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br><a href="http://limedaley.com/mailman/listinfo/plog-svn">http://limedaley.com/mailman/listinfo/plog-svn</a></blockquote></div><br></div></blockquote></div> _______________________________________________<br>pLog-svn mailing list<br><a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>http://limedaley.com/mailman/listinfo/plog-svn</blockquote></div><br></div></body></html>