Changes between Version 82 and Version 83 of DeveloperGuidelines/Optimisation
 Timestamp:
 11/02/12 04:44:15 (11 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

DeveloperGuidelines/Optimisation
v82 v83 54 54 8. Be careful with how you user Storages & Rows: 55 55  For Variable  A  B (optimized)  Time A  Time B  56  x = Storage(a="abc")  x.a  x ["a"]  1.064  0.39 57  x = Storage()  x.a = "b"  x ["a"] = "b"  0.49  0.24 58  row = !s3db.pr_person[1]  !row["first_name"]  row.first_name  0.25  4.18 56  x = Storage(a="abc")  x.a  x!["a"]  1.064  0.39  57  x = Storage()  x.a = "b"  x!["a"] = "b"  0.49  0.24  58  row = s3db.pr_person![1]  row!["first_name"]  row.first_name  0.25  4.18  59 59  table = s3db.pr_person  "first_name" in table  hasattr(table, "first_name")  0.74  0.42  60 60  table = s3db.pr_person  "first_name" in table  table.first_name  0.74  0.27 