<div dir="ltr">$B<~$5$s(B<div>$BJFNS$G$9!#(B</div><div><br></div><div><div>kumu.js is old javascript library, which was used long time ago.</div><div>It support old browsers.</div></div><div><div><br></div><div>Try to do in the following manner. </div>
<div>Unzip the jar file, should be abolished prototype extensions to modify the kumu.js. </div><div>And should be placed in the WEB-INF/lib create a jar file, including the kumu.js the modified.</div></div><div><br></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-03-13 10:53 GMT+09:00 $B<~(B $B0NL@(B <span dir="ltr"><<a href="mailto:zhou_w@worksap.co.jp" target="_blank">zhou_w@worksap.co.jp</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
$BJFNS$5$s!"(B<br>
<br>
Thank you for you reply!<br>
<br>
I'm using a bunch of JavaScript libraries, most notably jQuery UI tabs <a href="https://jqueryui.com/tabs/" target="_blank">https://jqueryui.com/tabs/</a> version 1.9.2.<br>
When the number of tabs gets large, the performance degrades dramatically in IE7/IE8. Another library has<br>
similar performance degradation is jqgrid <a href="http://www.trirand.com/blog/" target="_blank">http://www.trirand.com/blog/</a> version 4.4.3.<br>
<br>
As a result of investigation, these libraries rely heavily on Array.unshift, which is overridden by kumu.js with<br>
its own implementation. Saving it and restoring later after kumu.js can be a workaround:<br>
<br>
<script type="text/javascript"><br>
var originalUnshift = Array.unshift;<br>
</script><br>
<script type="text/javascript" src="/teedaExtension/org/seasar/teeda/ajax/js/kumu.js"></script><br>
<script><br>
Array.prototype.unshift = originalUnshift;<br>
</script><br>
<br>
With this trick, I got almost 5x speed up in IE7/IE8. But there are many places in my project have kumu.js linked,<br>
so I have to apply this trick everywhere and it's really troublesome.<br>
<br>
This kind of performance penalty happens in real IE7/IE8, but not in the IE7/IE8 simulated mode of IE9+,<br>
nor in modern browsers such as Chrome/Firefox. That's probably because that the JavaScript engine of modern<br>
browsers are no optimized that the additional performance overhead caused by overridden Array.unshift is not<br>
sensible.<br>
<br>
Generally I think replacing the built-in methods provided by the browsers is not a good idea.<br>
<div class=""><br>
Any advice or suggestion will be greatly appreciated.<br>
<br>
Best Regards,<br>
<br>
<br>
<br>
</div>2014-03-13 06:30:31 (+09:00) Masaaki Yonebayashi <<a href="mailto:yone@abby.co.jp">yone@abby.co.jp</a>> wrote<br>
<div class="">> $BJFNS$G$9!#(B<br>
><br>
> What specific process do you do when the performance desgrade?<br>
><br>
> 2014$BG/(B2$B7n(B19$BF|?eMKF|!"<~(B $B0NL@(B<<a href="mailto:zhou_w@worksap.co.jp">zhou_w@worksap.co.jp</a>>$B$5$s$O=q$-$^$7$?(B:<br>
><br>
> > $B$*@$OC$K$J$C$F$$$^$9!#(B<br>
> > $B<~$H?=$7$^$9!#(B<br>
> ><br>
> > kumu.js is overriding the prototype of array:<br>
> ><br>
> > Array.prototype = Kumu.extend(Array.prototype, {<br>
> > map:Kumu.map,<br>
> > filter:Kumu.filter,<br>
> > shift:Kumu.shift,<br>
> > unshift:Kumu.unshift,<br>
> > include:Kumu.include<br>
> ><br>
> > });<br>
> ><br>
> > which is causing serious performance problems in JavaScript heavy page in<br>
> > IE7,8.<br>
> ><br>
> > What's the reason? If kumu.js is trying to deal with legacy browsers<br>
> > without<br>
> > all these methods provided, at least it should the existence of the methods<br>
> > before overriding them.<br>
> ><br>
> > Any advice or suggestion will be greatly appreciated.<br>
> ><br>
> > Best Regards,<br>
> ><br>
> > _______________________________________________<br>
> > Seasar-user mailing list<br>
</div>> > <a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a> <javascript:;><br>
<div class="HOEnZb"><div class="h5">> > <a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
> ><br>
><br>
><br>
> --<br>
> $BJF(B $BNS(B $B@5(B $BL@(B<br>
> $B3t<02q<R(BAbby($B%(%S%$(B)<br>
> <a href="http://abby.co.jp" target="_blank">http://abby.co.jp</a><br>
_______________________________________________<br>
Seasar-user mailing list<br>
<a href="mailto:Seasar-user@ml.seasar.org">Seasar-user@ml.seasar.org</a><br>
<a href="https://ml.seasar.org/mailman/listinfo/seasar-user" target="_blank">https://ml.seasar.org/mailman/listinfo/seasar-user</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>$BJF(B $BNS(B $B@5(B $BL@(B<br>$B3t<02q<R(BAbby($B%(%S%$(B)<br><a href="http://abby.co.jp" target="_blank">http://abby.co.jp</a>
</div>