Closed Bug 632497 Opened 9 years ago Closed 9 years ago
Use a content-type hint for async
Fetch in Auto Complete Cache
Bug 632177 shows that GetMIMEInfoFromOS can be very expensive for Fennec. This function is called by nsFileChannel::MakeFileInputStream, which is triggered by NetUtil.asyncFetch when its source is a file URI. With the patches from bug 632417 and bug 632490, Fennec is able to start up without calling GetMIMEInfoFromOS, but when you first tap on the urlbar, AutoCompleteCache triggers a call. This patch avoids GetMIMEInfoFromOS call by setting a MIME-type "hint" on the channel before calling asyncFetch. See bug 632417 for some related discussion.
Attachment #510699 - Flags: review?(mark.finkle)
Attachment #510699 - Flags: review?(mark.finkle) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.