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

enhance memory usage using buffer, or avoiding alloc #153

Merged
merged 1 commit into from
Jun 28, 2019

Conversation

Arnaud-Nauwynck
Copy link
Contributor

avoid so many conversions of
char -> to String -> getChars() -> copy chars -> foreach char -> to String -> getChars ...

also use bigger buffer... as printed log line usually got more than 50 chars..
not 16 as default in StringBuilder constructor (with 16 chars, you can write "Hello World !!!!" )

@hboutemy hboutemy merged commit adb9e24 into fusesource:master Jun 28, 2019
@hboutemy
Copy link
Collaborator

good idea, thanks

hboutemy added a commit that referenced this pull request Jun 29, 2019
@hboutemy
Copy link
Collaborator

sadly merged without testing myself and found that the patch was wrong :(

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

Successfully merging this pull request may close these issues.

2 participants