DescriptionXMLHttpRequest#responseText should use a rope
Instead of building a flat WTF::String from XMLHttpRequest response data, we
should build a v8::String rope. That way when web sites query the responseText
field repeatedly, every query will share the same underlying data.
This CL causes StringImpl::hashSlowCase to drop way down the CPU profile of
reloading Mobile Gmail:
Before: 1.08% content_shell content_shell [.] WTF::StringImpl::hashSlowCase() const
After: 0.37% content_shell content_shell [.] WTF::StringImpl::hashSlowCase() const
There are likely other savings as well, but the effect on StringImpl::hashSlowCase
is the most dramatic change to the profile.
R=jamesr
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=152380
Patch Set 1 #
Total comments: 2
Patch Set 2 : Compiles, does not pass tests #Patch Set 3 : Passes tests #Patch Set 4 : Rebase #
Total comments: 6
Patch Set 5 : Address reviewer feedback #Messages
Total messages: 10 (0 generated)
|