Ref. to issue 307 in google code. http://code.google.com/p/web2py/issues/detail?id=307&sort=-id
As suggested by "Caleb", I prepared the HTML myself (in the controller). Then returned the generated html to the View and rendered it there. ========== My finding:--- ========== Still it takes long time to load the page (using either of the following 2 ways). 1) Without XML helper, it displays html code as it is (i.e. <table><th>MyName</th>....etc.) Takes long time to display the page. 2) With XML, it displays properely formatted table. Takes long time to display the page. Whether anybody else had a similar situation like the same? Any suggestions/comments highly appreciated. ---Vineet On Jun 15, 9:00 pm, VP <vtp2...@gmail.com> wrote: > > for i in custdata: > > mystr2 = ''.join([mystr2, '<tr><td>' , str(i[0]) , '</td>']) > > ... > > > lst = [ jn(['<tr><td>' , str(i[0]) , '</td>', > > '<td>' , str(i[1]) , '</td>', > > '<td>' , str(i[2]) , '</td>', > > ...... more omitted......]) for i in res] > > > mystr=jn(lst) > > ---------------------------------------------- > > The performance boost is amazing...... > > It took ONLY 0.078 seconds > > ---------------------------------------------- > > This makes sense because a crude analysis shows that the first > approach is O(n^3) while the second one is O(n). > > (I think)