Closed Bug 632497 Opened 14 years ago Closed 14 years ago

Use a content-type hint for asyncFetch in AutoCompleteCache

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mbrubeck, Assigned: mbrubeck)

References

Details

(Keywords: mobile, perf)

Attachments

(1 file)

Attached patch patchSplinter Review
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: 14 years ago
Resolution: --- → FIXED
tracking-fennec: ? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: