poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 54838] StringBuffer could be replaced by StringBuilder for performance
Date Sat, 25 May 2013 15:23:19 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=54838

--- Comment #4 from Dominik Stadler <dominik.stadler@gmx.at> ---
Created attachment 30324
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30324&action=edit
List of places where StringBuffer or Vector are used currently

I scanned the current source code for StringBuffer, Vector and HashTable. 

HashTable seems to be not used anywhere currently. 

For StringBuffer and Vector I found 551 occurrences all over the place. 

I would not blindly start replacing all those, risking bugs or race-conditions
being introduced underway, without some idea where in the code performance is
important and should be improved. 

Is there a set of unit tests or enhanced tests which run a set of
performance-sensitive operations which we can use to profile and analyze where
performance improvements are best targeted at? Or are there certain things
where you would like to gain performance which could benefit from using the
non-thread-safe variants?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message