By: olivier
Date: 2005-01-25
Time: 16:52
|
increase performance by using block in a form
Hello,
After a big test, a form with 100 items (text, textarea, select, checkboxe) with a select from a database.
1st method : all datas from the SELECT are globals PHP vars
TBS syntax : var.field_name
average result -> 17 seconds
(16 second for PHP and TBS and 1 second to send the doc to the browser)
2nd method : all datas from the SELECT are send via an array to the TBS block
TBS syntax : block.field_name
average result -> 2 seconds
(1 second for PHP and TBS and 1 second to send the doc to the browser)
In the two case, the SQL query are the same. The tests are made on easyphp 1.7
To conclude, choice the second method, it's increase performance by 16
Olivier
|