Fix performance issue with wrapping large texts.
Fix performance issue with wrapping large texts.

NeilFraser/CodeCity,NeilFraser/CodeCity,NeilFraser/CodeCity,google/CodeCity,NeilFraser/CodeCity,google/CodeCity,google/CodeCity,google/CodeCity