Peculiar fruits in the JDK

David M. Lloyd david.lloyd at redhat.com
Tue Jun 24 16:15:06 UTC 2008


On 06/24/2008 11:08 AM, Ulf Zibis wrote:
> I many cases I also could shorten the encoding mappings.
> 
> Example: 
> https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-charset-enhanced/branches/milestone1/src/sun/nio/cs/ext/IBM870.java?rev=223&view=markup 

Would a 'switch' statement not be more speed- and space-efficient for this 
type of lookup task?

- DML



More information about the core-libs-dev mailing list