[10] RFR: 8185104: Generate CharacterDataLatin1 lookup tables directly

Ulf Zibis Ulf.Zibis at CoSoCo.de
Tue Jul 25 11:14:18 UTC 2017


Hi,


Am 23.07.2017 um 15:37 schrieb Claes Redestad:
> 1. it reduces the size of the generated bytecode, which is necessary 
> to keep code below method bytecode limits if the arrays generated are 
> very large

I always was wondering why filling large lookup tables is done by static 
java code in the class. Wouldn't it be more clever, to load the lookup 
table content from a binary resource file? Then we must not bother to 
initialize tables by static fake strings to save bytecode footprint.
The same thoughts would apply to the charset mappings in sun.nio.charset 
classes.

-Ulf



More information about the core-libs-dev mailing list