poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Height <jhei...@minotaur.apache.org>
Subject String encoding (again)
Date Wed, 24 Aug 2005 03:43:38 GMT
All,

Any idea why the following line from UnicodeRecord (current HEAD rev and 
previous) is actually required?
String unicodeString = new 
String(getString().getBytes("Unicode"),"Unicode");

If i remove it and use:
String unicodeString = getString();

1) All of the unit tests still pass, and
2) There is a 33x performance improvement with workbooks containing a 
large numbers of strings

I am tempted to apply a patch to use my approach. Any 
objections?

Jason

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message