Re: j2s-development] Slow table item creation
Brought to you by:
zhourenjian
|
From: Soheil H. Y. <soh...@gm...> - 2006-06-28 13:20:08
|
I changed the implementation of TableItem.setText() using innerHTML2 method. There is no significant performance improvement. Any IDEA? Is it because of Table.createItem bottleneck ? By the way, using it I could improve the performance of TableItem.setText(String[] strings) by eliminating the "for loop". Regards, Soheil On 6/28/06, Soheil Hassas Yeganeh <soh...@gm...> wrote: > I read that. That was a very good benchmark. > And I get that just using innerHTML2 method will build a createItem() > method with acceptable performance. > But, using that method will make the codes so ugly and unreadable. > Any ideas to use innerHTML properly in Java2Script? Is it ok to use it > in the way it is ? > > > Regards, > Soheil > > On 6/28/06, Zhou Renjian <jo...@sj...> wrote: > > Soheil Hassas Yeganeh wrote: > > > Hi, > > > I wrote a benchmark test for widgets of J2S. Creating a table with 800 > > > items takes about 15 sec. on my laptop. creating each item costs about > > > 2ms. So, it must take 2*1000 to add items to the table. > > > I'm not sure if it is because of the layout of the table. > > > Any ideas ? > > > Regards, > > > Soheil > > > > > > Using Tomcat but need to do more? Need to support web services, security? > > > Get stuff done quickly with pre-integrated technology to make your job easier > > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > _______________________________________________ > > > j2s-development mailing list > > > j2s...@li... > > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > > > > > > > > > Read something here: > > http://www.quirksmode.org/dom/innerhtml.html > > > > > > > > Using Tomcat but need to do more? Need to support web services, security? > > Get stuff done quickly with pre-integrated technology to make your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > j2s-development mailing list > > j2s...@li... > > https://lists.sourceforge.net/lists/listinfo/j2s-development > > > |