Microsoft's Scalar will help you with a medium-large repo in pure history and file and file count size, but it won't help you with a repo with a very high merge rate. Microsoft doesn't actually have a massive monorepo anywhere near Google or Meta's size so they never came close to hitting the same problems.