Community
Participate
Working Groups
I see in some methods of SWT usage of StringBuffer. In the vast majority of cases, those are variables and not shared objects so StringBuffer (synchronized) adds no added value but adds extra cost. Those instances should be replaced by StringBuilder.
(In reply to Mickael Istria from comment #0) > I see in some methods of SWT usage of StringBuffer. In the vast majority of > cases, those are variables and not shared objects so StringBuffer > (synchronized) adds no added value but adds extra cost. > Those instances should be replaced by StringBuilder. I ran UNIX find and replace on my Ubuntu setup, will share a patch shortly.
New Gerrit change created: https://git.eclipse.org/r/145088
Gerrit change https://git.eclipse.org/r/145088 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=32e9cb229263eac0f1845b3d060b91286dceb2d3
Is there still some work to be done here Niraj?
(In reply to Eric Williams from comment #4) > Is there still some work to be done here Niraj? Done with it, resolving.
Verified in SWT sources.