Closed Bug 1134735 Opened 9 years ago Closed 9 years ago

Don't use tee->InitAsync in nsHttpChannel::InstallCacheListener when using cache2

Categories

(Core :: Networking: HTTP, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: mayhemer, Assigned: mayhemer)

References

Details

(Whiteboard: [mem-shrink])

Attachments

(1 file)

There is no need since the cache output stream is a fully buffered blocking socket (that tho never blocks) that can be easily used on the main thread.

We also save memory copying at http://hg.mozilla.org/mozilla-central/annotate/986e840a2979/xpcom/io/nsInputStreamTee.cpp#l79
Attached patch v1Splinter Review
Tested using an opt build and an sdcard.  No UI slowdown at all.  We had to do this from the start :(
Attachment #8566718 - Flags: review?(michal.novotny)
Whiteboard: [mem-shrink]
Attachment #8566718 - Flags: review?(michal.novotny) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/bc84d6942d94
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: