Closed Bug 68075 Opened 25 years ago Closed 25 years ago

Need to optimize CreateInstances of unicode to MacRoman converters, and Unicode helpers

Categories

(Core :: Internationalization, defect)

All
Mac System 8.5
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: sfraser_bugs, Assigned: nhottanscp)

Details

Attachments

(3 files)

Some analysis of XPCOM logs shows that just starting up Mozilla and displaying a simple, text-only HTML page involves 625 CreateInstances of NS_UNICODETOMACROMAN_CID, and 625 of NS_UNICODEENCODEHELPER_CID. This seems very high, and should be optimized.
Some places where we make nsUnicodeToMacRoman converters: nsCharsetMenu::ReorderMenuItemArray-> NS_QuickSort (this looks like bug 64146). EVERY comparison in side that quicksort call does CreateInstance of a converter! It looks like nsCollation::UnicodeToChar or something thereabout should cache the converter.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
using nhotta's account: /r=yokoyama
Keywords: review
checked in
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Hotta san, please mark as fixed.
Status: RESOLVED → VERIFIED
QA Contact: teruko → nhotta
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: