[
https://issues.apache.org/jira/browse/WICKET-7042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17711011#comment-17711011
]
ASF subversion and git services commented on WICKET-7042:
---------------------------------------------------------
Commit bbc67b9b1cb12cdf472a490d265c4666f4c8e290 in wicket's branch
refs/heads/wicket-9.x from Thomas Heigl
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=bbc67b9b1c ]
WICKET-7042 Correctly size `StringResponse` when writing combined scripts (#573)
(cherry picked from commit 4798a92784fae8ea22b907cdf4d915c00eb4522c)
> Improve sizing of StringResponse when writing scripts in PartialPageResponse
> ----------------------------------------------------------------------------
>
> Key: WICKET-7042
> URL: https://issues.apache.org/jira/browse/WICKET-7042
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 9.12.0
> Reporter: Thomas Heigl
> Assignee: Thomas Heigl
> Priority: Major
>
> When rendering scripts in PartialPageResponse, an AppendingStringBuilder with
> initial capacity 1024 is created. This buffer is then written to a
> StringResponse that uses a buffer with an initial capacity of 128 causing
> unnecessary allocations.
> We should create the StringResponse with enough capacity to hold the scripts.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)