Various performance improvements to variable-height scrolling.