An evolutionary perspective on the concept of efficiency: how does function evolve?