[New bug report from emacs-devel]
For grep output a bigger problem is that grep on binary data
might output too long lines before the terminating newline.
(*) We already have this kind of problem with "normal" files which contain
minified assets (JS or CSS). The file contents are usually normal ASCII,
but it's just one line which can reach several MBs in length.
The usual way to deal with that is with project-ignores and
grep-find-ignored-files. That works for both cases.
This is a bug problem - often grep output lines are so long
that Emacs freezes, so need to kill the process. Updating
manually ignored-files every time a new file causes freeze
is very unreliable and time-consuming workaround.
And a non-obvious one (for an average user).
Is the same problem exhibited by commands using the Xref UI? I don't
remember seeing it, but of course our projects can be very different.
No difference from grep, Xref output has the same problem.