Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
logback
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Gaël Lalire
logback
Commits
0aaf1570
Commit
0aaf1570
authored
8 years ago
by
Ceki Gulcu
Browse files
Options
Downloads
Patches
Plain Diff
increase initial StringBuilder size
parent
a0318b3b
Branches
Branches containing commit
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
logback-core/src/main/java/ch/qos/logback/core/pattern/PatternLayoutBase.java
+4
-1
4 additions, 1 deletion
...n/java/ch/qos/logback/core/pattern/PatternLayoutBase.java
with
4 additions
and
1 deletion
logback-core/src/main/java/ch/qos/logback/core/pattern/PatternLayoutBase.java
+
4
−
1
View file @
0aaf1570
...
...
@@ -27,6 +27,9 @@ import java.util.Map;
abstract
public
class
PatternLayoutBase
<
E
>
extends
LayoutBase
<
E
>
{
static
final
int
INTIAL_STRING_BUILDER_SIZE
=
256
;
Converter
<
E
>
head
;
String
pattern
;
protected
PostCompileProcessor
<
E
>
postCompileProcessor
;
...
...
@@ -108,7 +111,7 @@ abstract public class PatternLayoutBase<E> extends LayoutBase<E> {
}
protected
String
writeLoopOnConverters
(
E
event
)
{
StringBuilder
buf
=
new
StringBuilder
(
128
);
StringBuilder
buf
=
new
StringBuilder
(
INTIAL_STRING_BUILDER_SIZE
);
Converter
<
E
>
c
=
head
;
while
(
c
!=
null
)
{
c
.
write
(
buf
,
event
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment