How Go 1.16’s Directory Traversal Optimization Boosts Performance by 480%
This article explains the directory‑traversal optimization introduced in Go 1.16, shows benchmark results where the new APIs (os.ReadDir, (*os.File).ReadDir, filepath.WalkDir) run up to 4.8 times faster than the old approach, and details the underlying mechanism that reduces system calls by leveraging file‑system‑provided metadata.
