[Bug 11184] New: Performance regression in variable substitutions.