<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2014-09-22 21:08 GMT+02:00 Hugues Peccatte <span dir="ltr"><<a href="mailto:hugues.peccatte@gmail.com" target="_blank">hugues.peccatte@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">2014-09-22 18:44 GMT+02:00 Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info" target="_blank">marc@infomarc.info</a>></span>:</span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">Hugues,<br>
do you still have the branch where each commit was separate, before<br>
squashing?<span>
<br>
</span></span><span><font color="#888888">--<br>
Marc Delisle (phpMyAdmin)<br></font></span></blockquote></div><br></div><div class="gmail_extra">With "git reflog", I've been able to get it back:</div><div class="gmail_extra">git checkout -b memory 972e038</div><div class="gmail_extra"><br></div><div class="gmail_extra">What do you have in mind?</div><span class=""><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">Hugues.</div></font></span></div>
</blockquote></div><br></div><div class="gmail_extra">I did a simple test:</div><div class="gmail_extra">* run substr 100000 times</div><div class="gmail_extra">* run $obj->substr 100000 times (where $obj->substr simply calls substr)</div><div class="gmail_extra"><br></div><div class="gmail_extra">The second one is 3 times longer than the first one. The simple fact to use an object is too long.</div><div class="gmail_extra">I tried something else: overwrite the functions. It's better: 2 times longer that the first one, but still slower…</div><div class="gmail_extra"><br></div><div class="gmail_extra">That means that importing your file would take ~24 seconds instead of ~12 seconds.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Should we think about defining "pmaSubstr", "pmaStrlen", etc functions and use it everywhere?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Hugues.</div></div>