Commit bc8fe12
committed
perf: avoid repeated case conversions
This eeks out an improvement of about 0.8% in CPU time and 1.3% in wall
time:
Summary of cpu time and (wall time):
best avg sd +/- p (best) (avg) (sd) +/- p
pathological 0.20382 0.21317 0.06488 [-3.4%] 0.0005 (0.20383) (0.21318) (0.06485) [-3.4%] 0.0005
command-t 0.15238 0.15889 0.05256 [-0.8%] 0.005 (0.15238) (0.15890) (0.05256) [-0.8%] 0.005
chromium (subset) 1.17132 1.19209 0.03527 [-0.1%] 0.025 (0.26559) (0.27217) (0.01463) [-0.2%]
chromium (whole) 0.91269 0.92064 0.06820 [-0.9%] 0.005 (0.10191) (0.10619) (0.02936) [-0.8%] 0.05
big (400k) 1.38361 1.39376 0.03947 [-0.8%] 0.005 (0.15141) (0.15477) (0.01254) [-0.9%] 0.05
total 3.84099 3.87856 0.18165 [-0.8%] 0.005 (0.88459) (0.90520) (0.13043) [-1.3%] 0.0051 parent 7418634 commit bc8fe12
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
58 | 59 | | |
59 | 60 | | |
60 | 61 | | |
61 | | - | |
62 | | - | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
85 | | - | |
86 | | - | |
| 83 | + | |
| 84 | + | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
| |||
0 commit comments