Skip to content

Avoid repeated Charset resolution in MimeType #25808

@jhoeller

Description

@jhoeller

Along the lines of the toString() caching in #22340, we can also cache the resolved Charset instance in MimeType, in particular for repeated getCharset() calls in if conditions (which are quite common in our converter implementations).

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions