Changes between Version 14 and Version 15 of DeveloperGuidelines/Optimisation


Ignore:
Timestamp:
11/16/09 16:51:17 (15 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Optimisation

    v14 v15  
    1414{{{
    1515for i in range(0, len(rows)):
    16      row=rows[i]
     16     row = rows[i]
    1717}}}
    1818runs much faster than:
     
    2727runs 1.5x faster than:
    2828{{{
    29 value = db(table.id==id).select(table.field, limitby=(0,1))[0]
     29value = db(table.id==id).select(table.field, limitby=(0, 1))[0]
    3030}}}
    3131(0.012 vs. 0.007 seconds vs in a test case)