Finding a needle in a 4 GB haystack: from 0.75 GB/s to 49 GB/s in Go
Always interesting to see what moved the needle, but even more interesting how some assumptions just fall apart.
segflow.github.io/post/fast-fi...
I had a 4 GiB file that’s almost entirely zeros, exactly one non-zero int64 is hiding at offset Size - 8 (the last aligned slot). The task: find that offset, as fast as possible, in Go on Linux.