this posts' original title was "..."

This patch for LRW that fixes the fact that it doesn’t use tables when enabled… e.g. slow. The buggy code produces the right results but is slow. This patch fixes it.