Don't stop early: Case-folding source code at memory speed

How a branch-free loop and byte-space arithmetic let GitHub case-fold every byte of code search at >45 GiB/s on a single core.
72 points by sbulaev 82 days ago github.blog 31 comments

Summary

GitHub has developed a method that uses a branch-free loop and byte-space arithmetic to achieve impressive case-folding speeds, processing over 45 GiB of code per second on a single core. This approach could significantly enhance code search efficiency, making it a key advancement for developers.

Comments (31 of ) ⌛

Loading more comments... ⌛
Scroll down to load more comments
No comments available.
Type to search HN and engineering blog articles
Press Escape to close  |  ↑↓ to navigate  |  Enter to open