[EMAIL PROTECTED] wrote:
That is bizarrely bad performance. What VM/architecture is this?
-Andy
uname -m -i -o i686 i386 GNU/Linux
/local/java//j2sdk1.4/bin/java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM build cxia321420-20040626 (JIT enabled: jitc))
I created a file of comma seperated values and used open office to write an excel file.
I found in smaller data sets with java hprof that over 30% of the time was spent in SSTderializer.addToStringTable and what it called mostly creating the exception in put. Nothing else was over 5%. The precentage of time in addToStringTable increased as my data set got larger.
static public void addToStringTable( BinaryTree strings, Integer integer, UnicodeString string )
{
if ( string.isRichText() )
string.setOptionFlags( (byte) ( string.getOptionFlags() & ( ~8 ) ) );
if ( string.isExtendedText() )
string.setOptionFlags( (byte) ( string.getOptionFlags() & ( ~4 ) ) );
boolean added = false;
while ( added == false )
{
try
{
strings.put( integer, string );
added = true;
}
catch ( Exception ignore )
{
string.setString( string.getString() + " " );
}
}}
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
