Closed Bug 348691 Opened 18 years ago Closed 18 years ago

[FIX] Speed up nsStaticCaseInsensitiveNameTable::Lookup(nsAString) some more

Categories

(Core :: XPCOM, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

(Keywords: perf)

Attachments

(2 files)

I keep running into this in profiles of CSS stuff.
Attached patch Like so (deleted) — Splinter Review
The other option I considered was to just have two separate tables with different ops, but both storing nsAFlatCStrings.  I don't think that's much of a win in either complexity or speed, and does take more memory.
Attachment #233720 - Flags: superreview?(dbaron)
Attachment #233720 - Flags: review?(dbaron)
Comment on attachment 233720 [details] [diff] [review]
Like so

r+sr=dbaron
Attachment #233720 - Flags: superreview?(dbaron)
Attachment #233720 - Flags: superreview+
Attachment #233720 - Flags: review?(dbaron)
Attachment #233720 - Flags: review+
Fix checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
http://lxr.mozilla.org/mozilla/source/xpcom/ds/nsStaticNameTable.cpp
In function ‘const void* nameTableGetKey(PLDHashTable*, PLDHashEntryHdr*)’:
http://lxr.mozilla.org/mozilla/source/xpcom/ds/nsStaticNameTable.cpp#83
warning: ‘entry’ is used uninitialized in this function
Attached patch Fix for that (deleted) — Splinter Review
Yikes.  I've gone ahead and checked this in pending review.
Attachment #248776 - Flags: superreview?(dbaron)
Attachment #248776 - Flags: review?(dbaron)
Attachment #248776 - Flags: superreview?(dbaron)
Attachment #248776 - Flags: superreview+
Attachment #248776 - Flags: review?(dbaron)
Attachment #248776 - Flags: review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: