我们正在加速还是减速?论代码速度的时间维度
Are We Speeding Up or Slowing Down? On Temporal Aspects of Code Velocity
AI总结:
本文通过挖掘 Blender、FreeBSD、LLVM 和 Mozilla 的 283,235 次代码评审,考察代码速度随时间和项目规模的变化,发现时间推移、代码库增长及代码 churn 波动均未导致评审速度下降。
摘要:
本文研究各类代码评审周期的持续时间如何随项目生命周期而变化。我们研究了四个开源软件(OSS)项目:Blender、FreeBSD、LLVM 和 Mozilla。我们挖掘并分析了 283,235 次代码评审的特征,这些评审平均覆盖七年的开发历程。我们的主要结论是,时间推移和项目规模都不会影响代码速度。我们发现:(a) FreeBSD、LLVM 和 Mozilla 的各类代码评审周期(首次响应时间、接受时间和合并时间)持续时间要么变短,要么保持不变;Blender 则不存在方向性趋势;(b) 代码库规模的增长(每年 3%–17%)并未伴随代码速度下降;(c) 对于 FreeBSD、LLVM 和 Mozilla,合并时间的 30 天移动中位数保持在固定范围内。这些发现不会因代码变更度量指标(例如提交数量或代码变更的不同作者数量)的波动而改变。
英文摘要:
This paper investigates how the duration of various code review periods changes over a projects' lifetime. We study four open-source software (OSS) projects: Blender, FreeBSD, LLVM, and Mozilla. We mine and analyze the characteristics of 283,235 code reviews that cover, on average, seven years' worth of development. Our main conclusion is that neither the passage of time or the project's size impact code velocity. We find that (a) the duration of various code review periods (time-to-first-response, time-to-accept, and time-to-merge) for FreeBSD, LLVM, and Mozilla either becomes shorter or stays the same; no directional trend is present for Blender, (b) an increase in the size of the code bases (annually 3-17%) does not accompany a decrease in code velocity, and (c) for FreeBSD, LLVM, and Mozilla, the 30-day moving median stays in a fixed range for time-to-merge. These findings do not change with variabilities in code churn metrics, such as the number of commits or distinct authors of code changes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。