--null-data
seems to inhibit some optimizations
#2832
Labels
enhancement
An enhancement to the functionality of the software.
To reproduce, first create a large binary file:
And then try to search it with
--null-data
:It should not take that long. A quick peak at
perf top
while the above process was running reveals it is doing a line-by-line search, probably because of some faulty reasoning about the line terminator in this case. Since most of the file is just line terminators, this spends a lot of time iterating over lines.I found this as part of #2831.
The text was updated successfully, but these errors were encountered: