I've been playing with nltk for a good sized grammar.
Calculating the hash for the Nonterminal class was
showing up on profiles. Since Nonterminals are
constant, we can cache the hash and get a noticable
speedup, especially for deep parses. I haven't
measured it in 1.3, but it was seconds off long parses