summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2019-05-15 15:54:37 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2019-05-23 09:46:58 +0200
commit070517f628d1cab07856418cee30e5595051e110 (patch)
treee9b12182efb20eef3c9c4520f370e0c47dea7afa /examples
parent7efce5d5100dc0fddba36fba2ecb5a6c5e9cae37 (diff)
Replace look-up array with simple arithmetic
QDate looked up lengths of months in an array. Change it to use some simple arithmetic instead. Benchmark result unchanged: RESULT : tst_QDate::monthLengths(): 0.33 msecs per iteration (total: 87, iterations: 256) Change-Id: I1ab0fa3b97e6716598e50d643a498e0b01c04a96 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions