GitHub 能流畅打开百万行 PR 了,但人类审查 200 行就开始掉质量
GitHub 工程团队发布了一篇详细文章,介绍其如何重构 GitHub Copilot 应用中的 Diff 界面,使其能够打开包含 2200 个文件、超过 100 万行变更和 400 多条行内审查评论的 Pull Request,而不会让代码审查变成漫长的等待。文章由首席设计工程师 Alberto Gimeno 撰写。当前,AI 编码智能体生成 Pull Request 的速度已经远超审查人员的消化能力,瓶颈也从编写代码转移到了阅读代码。这次重构的核心,是不再假设 Pull Request 是一个完全统一的列表。在给定字体大小的情况下,代码行的高度是已知的,因此可以预先计算其几何布局,并且无须反复重建。评论则不同。Markdown 正文在不同宽度下会以不同方式换行, 区域可以原地展开和折叠,回复编辑器会随着用户输入而增高,图片也会在加载后改变高度。团队没有强迫一个支持可变高度的虚拟化组件同时处理这两类内容,而是将文档拆分成两个相互独立的区域:总高度 = 确定的代码高度+ Σ 动态区块的有效高度+ 滚动留白复制代码动态区块根据其身份(文件、行和所在侧)而不是像素位置进行标识,并通过一个指纹跟踪内容、展开状态和测量宽度。系统会在浏览器空闲时进行一次集中测量,批量读取已经挂载的区块,测量范围限制在视口前后约 2400 像素以内。布局修正会锚定在读者当前查看的内容上,因此界面不会在用户主动
上一篇:ED files supplementary prosecution complaint against Satyendar Jain, 10 others
下一篇:Wirsingsalat - DER SPIEGEL
下一篇:Wirsingsalat - DER SPIEGEL
相关文章:
- Swiss neutrality melting as fast as Alpine glaciers — Russian embassy
- Somali American Uber driver dies after brutal attack in Minneapolis
- Mike Love, co-founder of the Beach Boys, dies at 85
- Father and son detectives team up to solve haunting cold case murder
- 新能源大基地-索比光伏网
- Thousands still without power after Thanksgiving storms
- 48 Hours show schedule
- Many Americans finding inventive ways to save on grocery costs
- Jogo mais rentável da história, GTA VI esnobou IA: 'tudo foi feito à mão'
- 48 Hours show schedule
相关推荐:
- Ak Bars Finance is renamed as AKBF
- What to expect from the weather during the busiest travel day of the Thanksgiving holiday
- Putin's war with Ukraine shows no signs of slowing down despite Trump's efforts
- Father and son detectives team up to solve haunting cold case murder
- Künstliche Intelligenz: Die Justiz setzt auf KI-Hilfe – bloß wie? - DER SPIEGEL
- Macy's Thanksgiving Day Parade brings out crowds after being postponed
- 2 American Airlines jets clip wings on tarmac of Reagan Airport
- What to expect from the weather during the busiest travel day of the Thanksgiving holiday
- 虚拟电厂分论坛-索比光伏网
- Many Americans finding inventive ways to save on grocery costs
栏目分类
最新文章
- 虚拟电厂分论坛-索比光伏网
- Press review: Russia eyes US contacts at G20 as EU rejects security dialogue proposals
- ‘Brindavihari’: Dear Kannada makers, don’t torture the audience
- Fußball-Bundesliga: Jess Thorup soll Union Berlin vor dem Abstieg retten - DER SPIEGEL
- When iodine’s discovery was finally announced…
- Jogo mais rentável da história, GTA VI esnobou IA: 'tudo foi feito à mão'
- ChatGPT virou o mundo de cabeça pra baixo há 4 anos. Mas sua vida já mudou?
- 新能源大基地-索比光伏网
- Ministries create response teams for presidential Direct Line — Kremlin
- What does ‘gerrymandering’ mean? | Explained
热门文章
