compile lammps whit we need

Dear developers,

As I know (but it might be wrong), when we don’t need a package, it’s more efficient to exclude that package, so my question is:
in lammps source file, there are a lot of files and headers for pair styles and fixes, is it good idea that exclude files of pair styles and fixes which we never use them in our simulation then compile lammps in order to obtain more efficency?

Thanks in Advance,
Masoud

I don’t think pairs you compile into LAMMPS but do not use cause that much overhead. The only place I can think of where this would impact performance is when LAMMPS has to look up the name of a pair_style, which I can’t imagine to be the main bottleneck in a typical simulation.