Hi,

using Embperl 2.2.0 with mod_perl 2.0.3 on a linux machine with perl 5.8.8, I have some performance problems with large tables. The code which I have attached at the end of this message takes quite a long time depending on the number of rows of the table. This is the time (in seconds) embperl needs to process the code:
rows                        time
500                         16
1000                       63

With other words: When I have the double number of rows, I need the double of the double time to process that. This behaviour has been approved in several tests. As I sometimes have tables with 10000 and more rows, I am not too lucky with that :-( Am I doing something wrong? Can I do something to increase speed or do I have to build the table with my own code in order to be faster?

Thanks in advance,

Andreas

This is the code:
[* $escmode=0;  *]
[* $tabmode=18; $maxrow=10000; $maxcol=100;*]
 <table border=0  bgcolor="fffffc" >
[* if ($row==0){ *]
   <tr bgcolor="E0D8CD">
     <th nowrap >[+ $head[$col] +]</th>
   </tr>
   <tr bgcolor="D9CFBF">
    <th nowrap>[+ $subhead[$col] +]</th>
   </tr>
[* } *]
[* if($bgcolor eq "#EBE4DA"){$bgcolor="#DED6CB";}else{$bgcolor="#EBE4DA";} *]
   <tr bgcolor=[+ $bgcolor +]>
     <td nowrap [+ $td_attr[$col] +]>[+ $main_data[$row][$col] +]</td>
   </tr>
 </table>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to