Skip to content

enhance memory usage using buffer, or avoiding alloc#153

Merged
hboutemy merged 1 commit intofusesource:masterfrom
Arnaud-Nauwynck:optim-alloc
Jun 28, 2019
Merged

enhance memory usage using buffer, or avoiding alloc#153
hboutemy merged 1 commit intofusesource:masterfrom
Arnaud-Nauwynck:optim-alloc

Conversation

@Arnaud-Nauwynck
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

good idea, thanks

hboutemy added a commit that referenced this pull request Jun 29, 2019
@hboutemy
Copy link
Copy Markdown
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