tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev Lists <devli...@hanik.com>
Subject Re: svn commit: r832039 - in /tomcat/trunk/java/org/apache/naming: HandlerRef.java ResourceRef.java ServiceRef.java StringManager.java resources/DirContextURLStreamHandler.java
Date Tue, 03 Nov 2009 16:15:34 GMT
On 11/02/2009 02:30 PM, Remy Maucherat wrote:
> On Mon, 2009-11-02 at 18:46 +0000, markt@apache.org wrote:
>    
>> Author: markt
>> Date: Mon Nov  2 18:46:21 2009
>> New Revision: 832039
>>
>> URL: http://svn.apache.org/viewvc?rev=832039&view=rev
>> Log:
>> StringBuffer ->  StringBuilder for o.a.naming
>>      
> So I did not test or anything, but is SBuilder faster than SBuffer ? Or
> it uses less resources ?
>    

in most uses cases you'd barely see a difference. As speed locking has 
gotten much better. (my unqualified guess is that locking is optimistic) 
The only time you'd see a difference is if there was an actual 
contention on the resource, which with StringBuffers is rare too.
> Rémy
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>    


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


Mime
View raw message