DescriptionAvoid extra copy of CSS data.
operator+ will always create new string buffers and that is a bit
unnecessary if one of the strings that are concatenated is empty.
By switching from operator+ to String::append TextResource::decodedText()
can avoid a copy almost always since the flush string will almost always
be empty.
BUG=484713
R=mkwst@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194975
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|