Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
On initialization CharsetUtil determines all supported endcodings and decodings by attempting to encode and decode a dummy string with every entry in JAVA_CHARSETS. This loads a lot of classes into the JVM which in turn uses up a lot of permGen.
Moving the decoding and encoding tests into isDecodingSupported() and isEncodingSupported() and adding positive results to the decodingSupported and encodingSupported treeSets from those methods would allow the class to only load encoders and decoders the application needs.
Attachments
Attachments
Issue Links
- is related to
-
MIME4J-159 Update CharsetUtil to java5. Some of CharsetUtil is no more "useful" as it was a java 1.3 backport of java2 1.4-5 stuff.
- Resolved