stephanrauh / AngularFaces

AngularFaces is a JSF library making it easy to integrate AngularJS code.
https://www.angularfaces.net
Apache License 2.0
90 stars 39 forks source link

Performance improvement: Use StringBuilder instead of StringBuffer #21

Closed rdebusscher closed 10 years ago

rdebusscher commented 10 years ago

When you use local variables within methods, StringBuilder is way much more performant then StringBuffer because it doesn't need the Thread synchronization code.

For example in method de.beyondjava.angularFaces.core.NGWordUtiltites#labelFromCamelCase

tandraschko commented 10 years ago

+1

stephanrauh commented 10 years ago

Done. THX for the hint!