---
id: 20260801-T0-06
title: "GitHub实现代码搜索大小写折叠：单核45GiB/s"
title_en: "GitHub Case-Folds Code Search at 45+ GiB/s on a Single Core"
url: https://ai.daily.yangsir.net/daily/20260801-T0-06
issue_date: 2026-08-01
publish_date: 2026-07-31T16:00:00.000Z
category: insight
source_name: "GitHub Blog"
source_url: https://github.blog/engineering/architecture-optimization/dont-stop-early-case-folding-source-code-at-memory-speed/
---

# GitHub实现代码搜索大小写折叠：单核45GiB/s

GitHub博客披露了其代码搜索性能优化技术：通过无分支循环和字节级算术，实现了在单核上以超过45GiB/s的速度对代码进行大小写折叠处理。该优化显著提升了代码搜索的响应速度和吞吐量。

## English Version

**GitHub Case-Folds Code Search at 45+ GiB/s on a Single Core**

GitHub Blog details how branch-free loops and byte-space arithmetic enable case-folding of every byte of code search at over 45 GiB/s on a single core. This optimization significantly boosts code search speed and throughput.

---

**来源**：[GitHub Blog](https://github.blog/engineering/architecture-optimization/dont-stop-early-case-folding-source-code-at-memory-speed/)

**详情页**：https://ai.daily.yangsir.net/daily/20260801-T0-06

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*