But even just storing it in a local variable to use later could destroy the locality enough to defeat LDC's optimization.
Huh? I can't think of a situation where a hash table lookup would entail less indirections than dereferencing a pointer stored in a register (resp. the stack, depending on scheduling).
David