rg output extremely slow on large binary file search hits

Open 💬 0 comments Opened Mar 27, 2026 by kalineh

What version of Codex CLI is running?

codex-cli 0.115.0

What subscription do you have?

pro

Which model were you using?

gpt-5.4 xhigh

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What terminal emulator and version are you using (if applicable)?

git bash

What issue are you seeing?

When rg finds a search hit in large binary files, it gets stuck printing lines for 30min+ for some files, it shows its 'lines' counter updating extremely slowly like 50 lines/sec or so.

Running Get-ChildItem -Recurse server\storage\artifacts -Filter task-00002585* | Select-Object FullName
Ran rg -n '2585|task-00002585|taskId"\s:\s2585|"id"\s:\s2585|task_id.?2585' server\storage server -S
└ Unity\Assets\Fonts\junicode.regular SDF.asset:2368: _typelessdata:
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
… +54535 lines
646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464646464

Working (17m 03s • esc to interrupt)

What steps can reproduce the bug?

Uploaded thread: 019d2ff0-0cba-7351-bf60-93934e01b184

What is the expected behavior?

go fast

Additional information

_No response_

View original on GitHub ↗