s-barannikov wrote: Why don't just turn SLocEntry into a POD and use SmallVector::resize_for_overwrite? That way the vector will not be initialized and the OS will only allocate physical memory on the first access to a page. https://github.com/llvm/llvm-project/pull/66430