• 投稿

用C++26手写高性能grep:从mmap到io_uring优化实录 | Nathan Baggs

1.3万
2
2026-08-20 20:00:00
451
100
820
50
挑战使用现代C++从零构建高性能grep工具,并与ripgrep进行基准测试对比。 1. 摒弃std::regex,引入SIMD加速的vectorscan库 2. 深入Linux内核机制,实测mmap、splice与io_uring性能差异 3. 经历多线程架构重构与内存分配器调优全过程 最终在4GB数据上实现1.2秒搜索,仅落后ripgrep 80ms,硬核解析底层优化陷阱。 ---------- 原视频标题:Why Its So Hard To Write A Fast grep 原视频作者:Nathan Baggs 原视频链接:https://www.youtube.com/watch?v=UJ_W0O3sFnY 原视频发布时间:2026-08-19 03:00:38 原视频简介:Writing a fast grep Join us on Discord: https://discord.gg/9FkkMgXSUV Become a member to get early access to videos - https://www.youtube.com/channel/UCQvW_89l7f-hCMP1pzGm4xw/join Tools: - Hyperfine - https://github.com/sharkdp/hyperfine - ripgrep - https://github.com/burntsushi/ripgrep - vectorscan - https://github.com/Vectorcamp/vectorscan 💭 All views are my own 💭
客服
顶部
赛事库 课堂 2021拜年纪