Closed Bug 611647 Opened 9 years ago Closed 9 years ago
Use stringbuffer when creating response
Text for XMLHttp Request
With stringbuffer we can reduce memcpy and actually share data with JS engine.
This way we can reduce memcpy quite a bit in common case. Testcase is in bug 611320. Depending on the machine the patch speeds up that testcase 25%-50%.
Attachment #490085 - Flags: review?(bzbarsky)
Comment on attachment 490085 [details] [diff] [review] something like this r=me, though if we didn't care about the overestimate we could also just allocate sufficient capacity and then BeginWriting... Ah well; in the common case this is not an issue.
Attachment #490085 - Flags: review?(bzbarsky) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.