Open
Bug 1149612
Opened 9 years ago
Updated 2 years ago
Improve nsHttpChannel::AsyncOpen() performance
Categories
(Core :: Networking: HTTP, defect, P3)
Core
Networking: HTTP
Tracking
()
NEW
People
(Reporter: snorp, Unassigned)
References
(Depends on 1 open bug)
Details
(Whiteboard: [necko-backlog])
Attachments
(1 file)
1.92 MB,
text/plain
|
Details |
We spend a pretty decent amount of time just firing off network requests, which is clogging up the main loop. In the attached profile, we fire off a couple dozen speculatively requests for images, and it takes us nearly 200ms (2751ms - 2939ms). It seems like this could be better.
Reporter | ||
Comment 1•9 years ago
|
||
Some of this is figuring out UA overrides, which I disabled in the attached trace. Bug 1148544 was filed for that specific issue, and contains a profile with the callbacks enabled.
Reporter | ||
Comment 2•9 years ago
|
||
10% of the time is in mozilla::net::PredictorLearn(). It seems like that could be moved off the main thread if it has to do actual work.
Reporter | ||
Comment 3•9 years ago
|
||
Looks like a substantial amount of time spent in nsChannelClassifier::Start(). Of that, I sometimes see nsThread::PutEvent() showing up.
Reporter | ||
Comment 4•9 years ago
|
||
I think OpenCacheEntry() might be the biggest offender here (other than comment #1).
Comment 5•9 years ago
|
||
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #4) > I think OpenCacheEntry() might be the biggest offender here (other than > comment #1). Can you get more granularity here?
Reporter | ||
Comment 6•9 years ago
|
||
(In reply to Honza Bambas (:mayhemer) from comment #5) > (In reply to James Willcox (:snorp) (jwillcox@mozilla.com) from comment #4) > > I think OpenCacheEntry() might be the biggest offender here (other than > > comment #1). > > Can you get more granularity here? I can try, yeah.
Updated•8 years ago
|
Whiteboard: [necko-backlog]
Comment 7•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Comment 8•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•