Closed Bug 399794 Opened 18 years ago Closed 18 years ago

Remove the use of Atoms of nsIconURI

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
minor

Tracking

()

VERIFIED FIXED
mozilla1.9beta2

People

(Reporter: alfredkayser, Assigned: alfredkayser)

Details

(Keywords: memory-footprint)

Attachments

(1 file)

Remove the use of Atoms of nsIconURI, as they are only used to save some strcmp's. It is for these few strcmp's to just do that instead of calling into the AtomService with all that overhead. In total this about 15K code (measured on FF-optimized build), and remove dependency to the Atom service, and uses less memory. (the strings are now really static data, and no Atoms are created). Note, can 'stricmp' be used instead of PL_strcasecmp?
Attachment #284861 - Flags: review?(pavlov)
Attachment #284861 - Flags: review?(pavlov) → review+
Attachment #284861 - Flags: superreview?(tor)
Version: unspecified → Trunk
Attachment #284861 - Flags: superreview?(tor)
Attachment #284861 - Flags: superreview?(tor)
Attachment #284861 - Flags: superreview?(tor) → superreview+
Attachment #284861 - Flags: approval1.9?
Attachment #284861 - Flags: approval1.9? → approval1.9+
Reed, can you do the checkin for me? Thanks in advance, Alfred
Keywords: checkin-needed
Checking in modules/libpr0n/decoders/icon/nsIconModule.cpp; /cvsroot/mozilla/modules/libpr0n/decoders/icon/nsIconModule.cpp,v <-- nsIconModule.cpp new revision: 1.11; previous revision: 1.10 done Checking in modules/libpr0n/decoders/icon/nsIconURI.cpp; /cvsroot/mozilla/modules/libpr0n/decoders/icon/nsIconURI.cpp,v <-- nsIconURI.cpp new revision: 1.29; previous revision: 1.28 done Checking in modules/libpr0n/decoders/icon/nsIconURI.h; /cvsroot/mozilla/modules/libpr0n/decoders/icon/nsIconURI.h,v <-- nsIconURI.h new revision: 1.12; previous revision: 1.11 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M10
Thanks! libimgicon.so Total: -688 (+941/-1629) Code: -586 (+0/+0) Data: -102 (+941/-1629)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: