Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

ConsoleAppender: reuse/recycle StringBuilder storage #232

Merged
merged 1 commit into from
Oct 22, 2019
Merged

ConsoleAppender: reuse/recycle StringBuilder storage #232

merged 1 commit into from
Oct 22, 2019

Conversation

diesalbla
Copy link
Contributor

@diesalbla diesalbla commented Oct 22, 2019

A StringBuilder is a mutable data structure to create a String. When the String is created, the new String does not share any storage with the StringBuilder. Thus, we can keep a same StringBuilder, and reuse its internal storage between different iterations.

A StringBuilder is a mutable data structure to create a String.
When the String is created, the new String does not share any
storage with the StringBuilder. Thus, we can keep a same
StringBuilder, and reuse its internal storage between different
iterations.
Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @diesalbla!

@eed3si9n eed3si9n merged commit 098796c into sbt:develop Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants