FINDSTR: line is too long

Today I tried to use the Windows FINDSTR command to find occurrences of a particular string in a large (33 gigabyte) text file. Simple enough, right?

findstr /L “xyzzy” bigfile.xml

FINDSTR immediately started giving me errors:

FINDSTR: Line 408555 is too long. FINDSTR: Line 432128 is too long. FINDSTR: Line 801201 is too long. FINDSTR: . . . → Read More: FINDSTR: line is too long

An optimization problem

Michael Abrash famously said, “The best optimizer is between your ears.” His point is that no amount of machine-specific optimization is going to make a difference in the running time of a bad algorithm. A poorly written Quicksort, for example, will outperform the most highly optimized Bubble sort. Selecting the right algorithm can give you . . . → Read More: An optimization problem