Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] re: Question about how to handle ICU...

Paul Webster wrote:

gs.

For example, in the ICU case com.ibm.icu is the main bundle we ship
with the platform, but a different bundle, com.ibm.icu.base provides
the same API as com.ibm.icu but is about 20% the size (it only
provides replacements for the main com.ibm.icu.text and
com.ibm.icu.util).
Just for the record, the com.ibm.icu.base is just 65K compared to the main bundles 5.5M, so it's just above 1% in size.

One important note is that the com.ibm.icu.lang package is missing in the com.ibm.icu.base bundle and that actually deserves a special note. If the objective is to use the com.ibm.icu.lang.UCharacter and its isWhitespace() and isSpaceChar() methods in particular, then I would advice against that. Recent tests show that the standard java.lang.Character is more accurate in this respect so using the UCharacter variant and thereby adding an extra payload of 5.4M is a bad idea.

Regards,
Thomas Hallgren


Back to the top