百科.dev
全部条目趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

the_silver_searcher

> 编程语言
开源

类似Ack的代码搜索工具,但更快.

27.1K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

类似Ack的代码搜索工具,但更快.

银色搜索器A码搜索工具与Ack相似,以速度为焦点. 你认识C吗? 要不要改进一下? 我邀请你跟我配对 Ag有什么了不起的吗? 这是一个比Ack更快的规模。 它忽略了您的.gitignore和.hgignore的文件模式. 如果您的源文件 repo 中存在您不想搜索的文件, 请将其模式添加到. ignore 文件 。 (克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克克. 命令名称比Ack短33%,所有密钥都在主排上! Ag现在相当稳定。 大多数变化是新特性,小错误修正,或性能改进. 这比我基准中的Ack快得多: ack testblah /code/ 104.66s 用户4.82s 系统 99% cpu 1:50.03 总 ag testblah /code/ 4.67s 用户 4.58s 系统 286% cpu 3.227 总 Ack 和 Ag 发现同样的结果,但Ag 速度快了34x (3.2秒对110秒). 我的代码目录大约是8GB. 感谢git/

核心特点

  • •It is an order of magnitude faster than ack.
  • •It ignores file patterns from your .gitignore and .hgignore.
  • •If there are files in your source repo you don't want to search, just add their patterns to a .ignore file. (\*cough\* *.min.js \*cough\*)
  • •The command name is 33% shorter than ack, and all keys are on the home row!
  • •Ag uses Pthreads to take advantage of multiple CPU cores and search files in parallel.
  • •Files are mmap()ed instead of read into a buffer.
  • •Literal string searching uses Boyer-Moore strstr.
  • •Regex searching uses PCRE's JIT compiler (if Ag is built with PCRE >=8.21).
  • •Ag calls pcre_study() before executing the same regex on every file.
  • •Instead of calling fnmatch() on every pattern in your ignore files, non-regex patterns are loaded into arrays and binary searched.

> 标签

Cagccommand-line-toolpcre

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月9日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言
百科.dev

开发者百科,帮助你快速发现语言、框架、数据库、DevOps 与云原生等优质开发者工具。

快捷入口

  • 首页
  • 全部条目
  • 趋势榜
  • 开源项目

关于我们

  • 关于我们
  • 社区公约
  • 技术资讯

参与我们

发现好用的开发者工具?欢迎提交分享。

提交条目
© 2026 开发者百科 baike.dev数据每日更新 · 发现优质开发者工具