[ https://issues.apache.org/jira/browse/HARMONY-5882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12607451#action_12607451
]
Nathan Beyer commented on HARMONY-5882:
---------------------------------------
Why do you think that the "conversion" to UTF-8 isn't necessary in the CPUTF8 class?
A call to ANY of the String.getBytes methods performs a conversion (an encoding). The suggested
change would actually just use the operating system's default character set for encoding the
String into bytes. For example, on a Windows machine in the US, this would encode the String
into a Windows-1252 (CP1252) byte[], which isn't UTF-8.
> [classlib][pack200] Performance improvements for pack200
> --------------------------------------------------------
>
> Key: HARMONY-5882
> URL: https://issues.apache.org/jira/browse/HARMONY-5882
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Affects Versions: 5.0M6
> Environment: Pack200 HEAD
> Reporter: Andrew Cornwall
> Attachments: main.patch, test.patch
>
>
> Attached are some performance improvements for Pack200. They do two things:
> 1. Remove unnecessary conversions to UTF-8 in CPUTF8
> 2. Cache array lookup in SegmentConstantPool
> Hope they work - this is my first try at applying a fix since I've forked.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.