Efficiency and shrinking in evolving networks