> 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)

Reply via email to