Commit 8338f98
committed
perf: avoid repeated pointer traversals
Supposedly gives us a 0.5% win in CPU time:
Summary of cpu time and (wall time):
best avg sd +/- p (best) (avg) (sd) +/- p
pathological 0.20469 0.21396 0.06910 [-0.5%] (0.20469) (0.21400) (0.06916) [-0.5%]
command-t 0.15212 0.15898 0.05456 [+1.4%] (0.15211) (0.15898) (0.05456) [+1.4%]
chromium (subset) 1.12325 1.18233 0.08018 [-0.9%] 0.025 (0.25472) (0.27047) (0.02438) [-0.1%]
chromium (whole) 0.90673 0.91697 0.05037 [-0.2%] 0.005 (0.10008) (0.10497) (0.01930) [+0.2%]
big (400k) 1.38030 1.38569 0.01572 [-0.6%] 0.0005 (0.14990) (0.15333) (0.00925) [-0.8%]
total 3.77224 3.85793 0.13443 [-0.5%] 0.005 (0.86813) (0.90174) (0.10183) [-0.0%]1 parent bc8fe12 commit 8338f98
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments