Closed Bug 49362 Opened 24 years ago Closed 24 years ago

charset converter cache to use Content-Type charset

Categories

(MailNews Core :: Internationalization, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: nhottanscp, Assigned: nhottanscp)

Details

(Keywords: perf, Whiteboard: [nsbeta3+])

This is separated from 47542. > The cache is done by using the first message headers' charset. > Since that is usually us-ascii and can be different from the mail > body's charset (which is almost always true for non Latin1 cases). > We need to change to check a charset again for Content-Type charset > then reset the cache the converter for the body.
Nominating for nsbeta3, currently Non Latin1 charsets are mostly not cached.
Keywords: nsbeta3, perf
Status: NEW → ASSIGNED
Naoki ~ Please provide more information.
What does this mean in terms of performance impact?
Since charset converters are created for every lines of message body, slower for longer messages. This is basically the same impact as the auto detector creation bug 49411. And we create two converters (to and from unicode) per line compare to one auto detector per line.
Marking nsbeta3+ per I18N bug triage.
Whiteboard: [nsbeta3+]
> The cache is done by using the first message headers' charset. This is correct but if the header's charset is not encoded then the default view charset is used. Since I was trying to support the case like a Japanese message with non Japanese headers (e.g. e-mail address) with Japanese body, that is actually cached when the default charset is set to Japanese. We only cache for one input charset, so setting a view default to the user's native charset make the cache most effective. So this bug is INVALID, my initial assumption was wrong.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Verified as suggested.
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.