mezura

mezura is a lines-of-code counter written in Rust. This series is about what it took to make it fast, and how to tell whether its counts are right.

About mezura

  1. What it takes to count the Linux kernel's 36M lines of code in under 70ms

    How mezura went from 0.4 s to 67 ms on the Linux kernel: a hardware floor to aim at, profilers that pointed the wrong way, file I/O on Linux and Windows, and a table-driven lexer.

  2. How to judge correctness when different counter outputs are equally correct coming