This function is completely constant in running time, so I don’t think these considerations are important here.
Sometimes you can even make real world performance significantly better by ignoring the technically better algorithmic complexity, especially when you almost always with low n's