Right now HTMLConverter::_processText walks up the entire ancestor chain to merge their attributed strings. Doing that for every text node results in O(kn) runtime complexity where k is the depth of the tree and n is the number of text nodes in the tree.
Created attachment 227922 [details] Adds a new cache
Comment on attachment 227922 [details] Adds a new cache Clearing flags on attachment: 227922 Committed r166347: <http://trac.webkit.org/changeset/166347>
All reviewed patches have been landed. Closing bug.