Efficiency and Complexity in Grammars