[ https://issues.apache.org/jira/browse/WICKET-7049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17712898#comment-17712898 ]
ASF GitHub Bot commented on WICKET-7049: ---------------------------------------- theigl opened a new pull request, #581: URL: https://github.com/apache/wicket/pull/581 This PR avoids allocating `AppendingStringBuffer` for empty header buckets in `FilteringHeaderResponse`. It targets 9.x because in 10, all string responses will be lazy by default (#574). > Avoid allocation for empty buckets in FilteringHeaderResponse > ------------------------------------------------------------- > > Key: WICKET-7049 > URL: https://issues.apache.org/jira/browse/WICKET-7049 > Project: Wicket > Issue Type: Improvement > Components: wicket-core > Affects Versions: 9.12.0 > Reporter: Thomas Heigl > Assignee: Thomas Heigl > Priority: Minor > > FilteringHeaderResponse currently allocates a new StringResponse for every > header bucket. In ajax requests, these buckets are almost always empty in our > case. We should use LazyStringResponse in this case to prevent allocating the > underlying string buffer. -- This message was sent by Atlassian Jira (v8.20.10#820010)