Closed Bug 123401 Opened 23 years ago Closed 21 years ago

image loader should cache ioservice.

Categories

(Core :: Layout, defect, P3)

x86
Windows 2000
defect

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: dougt, Assigned: pavlov)

Details

Attachments

(2 files)

 
Comment on attachment 67776 [details] [diff] [review]
caches io service and img loader

r=pavlov
Attachment #67776 - Flags: review+
Priority: -- → P3
Target Milestone: --- → Future
doug, is this patch still relevant?  We no longer need the ioservice at all in
this file....
if you say so, mark it as invalid.  I remember that the image loader, at one
point, smacked the service manager pretty hard for these two objects.
Yeah, at this point the prescontext is what would be smacking the service
manager for the ioservice.  But it already has a cached on it could use... patch
coming up for that.

And I'd be interested in how much both nsImageLoader and nsImageLoadingContent
hit the service manager looking for the image loader...  We could conceivably
cache the image loader in those two places...
Attachment #121621 - Flags: superreview?(dbaron)
Attachment #121621 - Flags: review?(dougt)
Comment on attachment 121621 [details] [diff] [review]
use the cached ioservice in the prescontext

r=dougt

assuming that this doesn't cause any nasty cycles.  Please check this by using
the reference count log.
Attachment #121621 - Flags: review?(dougt) → review+
Doug, I did check... note that we're _already_ caching the IOService here; all
I'm doing is passing it to NS_NewURI.
i didn't see any calls to GetIOService in nsPresContext -- is is probably called
via the nsIPresContext interface.
Attachment #121621 - Flags: superreview?(dbaron) → superreview+
Patch checked in.  Marking fixed.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: