with gentoo you get to optimize the compiler to your system. also you can setup "use" flags that will keep your system small. for example, if you are running a server and want to install something, with the appropriate use flags you can keep the package manager from pulling in libraries you dont need. such as x11 stuff.