I switched this optimisation off back in
ed35d91be6c6e188c80bc0994fa83acd7526d225, in October 2013, as part of a
big refactoring of the parsing and widget mechanism. I’ve been meaning
to switch it back on for some time.
My rough measurements suggest that this optimisation can reduce
rendering time by 5-10%.