Chromium Code Reviews
Descriptionservice worker: Optimize response header creation.
HttpResponseHeaders::AddHeader has O(n^2) performance. Avoid using it.
I verified on Linux that constructing the headers from a
ServiceWorkerHeaderMap of 1000 headers goes from ~500ms to <1ms.
BUG=687230
Review-Url: https://codereview.chromium.org/2690333003
Cr-Commit-Position: refs/heads/master@{#450563}
Committed: https://chromium.googlesource.com/chromium/src/+/cd398136c4992574a2161d68acb39c716095eedd
Patch Set 1 #
Total comments: 2
Patch Set 2 : fix auto #
Messages
Total messages: 18 (11 generated)
|
||||||||||||||||||||||||||||