Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StringBuilder vs StringBuffer #129

Open
valerybokov opened this issue Oct 13, 2024 · 0 comments
Open

StringBuilder vs StringBuffer #129

valerybokov opened this issue Oct 13, 2024 · 0 comments

Comments

@valerybokov
Copy link

Hello!
I found that you often use StringBuffer class in your code. The StringBuffer is a thread-safe type, so it is slower then StringBuilder. You can instantiate StringBuilders if you use them only inside one method. For example: Base64Util.encode, ClassReferenceFixer.newDescriptor, Constant.toString0, DataEntryTokenizer.nextToken and many other methods.

Best regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant