Closed Bug 1347379 Opened 7 years ago Closed 7 years ago

nsLoadGroup::Init() can be too slow

Categories

(Core :: Networking, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Performance Impact high
Tracking Status
firefox55 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file)

See this profile: <https://perfht.ml/2nqIqGw>

10ms of time spent searching this hashtable: <http://searchfox.org/mozilla-central/rev/ca7015fa45b30b29176fbaa70ba0a36fe9263c38/netwerk/base/RequestContextService.cpp#174>

This is stupid, because we have *just* created a UUID <http://searchfox.org/mozilla-central/rev/ca7015fa45b30b29176fbaa70ba0a36fe9263c38/netwerk/base/nsLoadGroup.cpp#1076>, so this search will always fail, and any time spent here is guaranteed wasted time, period.  :(
Comment on attachment 8847414 [details] [diff] [review]
Don't bother searching for a newly generated UUID in the request context hashtable

Review of attachment 8847414 [details] [diff] [review]:
-----------------------------------------------------------------

thanks.

10ms seems a little weird tho.
Attachment #8847414 - Flags: review?(mcmanus) → review+
Whiteboard: [qf:p1]
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/5f53b9b2d22a
Don't bother searching for a newly generated UUID in the request context hashtable; r=mcmanus
https://hg.mozilla.org/mozilla-central/rev/5f53b9b2d22a
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Performance Impact: --- → P1
Whiteboard: [qf:p1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: