Closed
Bug 399794
Opened 18 years ago
Closed 18 years ago
Remove the use of Atoms of nsIconURI
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
VERIFIED
FIXED
mozilla1.9beta2
People
(Reporter: alfredkayser, Assigned: alfredkayser)
Details
(Keywords: memory-footprint)
Attachments
(1 file)
|
10.31 KB,
patch
|
pavlov
:
review+
tor
:
superreview+
pavlov
:
approval1.9+
|
Details | Diff | Splinter Review |
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)
Updated•18 years ago
|
Attachment #284861 -
Flags: review?(pavlov) → review+
| Assignee | ||
Updated•18 years ago
|
Attachment #284861 -
Flags: superreview?(tor)
Updated•18 years ago
|
Version: unspecified → Trunk
| Assignee | ||
Updated•18 years ago
|
Attachment #284861 -
Flags: superreview?(tor)
| Assignee | ||
Updated•18 years ago
|
Attachment #284861 -
Flags: superreview?(tor)
Attachment #284861 -
Flags: superreview?(tor) → superreview+
| Assignee | ||
Updated•18 years ago
|
Attachment #284861 -
Flags: approval1.9?
Updated•18 years ago
|
Attachment #284861 -
Flags: approval1.9? → approval1.9+
| Assignee | ||
Comment 1•18 years ago
|
||
Reed, can you do the checkin for me?
Thanks in advance, Alfred
Keywords: checkin-needed
Comment 2•18 years ago
|
||
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
| Assignee | ||
Comment 3•18 years ago
|
||
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.
Description
•