[
https://issues.apache.org/jira/browse/WICKET-6960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17501945#comment-17501945
]
ASF subversion and git services commented on WICKET-6960:
---------------------------------------------------------
Commit 9548caa2db46a12e89d1ec2b934af4e5b0dba0e6 in wicket's branch
refs/heads/wicket-9.x from Thomas Heigl
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=9548caa ]
WICKET-6960 Avoid unnecessary allocations when decoding and encoding
`ComponentInfo` (#501)
(cherry picked from commit d902cdbdd853cb490db1507d79c587acede01ae3)
> Reduce allocations when encoding ComponentInfo
> ----------------------------------------------
>
> Key: WICKET-6960
> URL: https://issues.apache.org/jira/browse/WICKET-6960
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 9.8.0
> Reporter: Thomas Heigl
> Assignee: Thomas Heigl
> Priority: Minor
> Fix For: 9.8.1
>
> Attachments: image-2022-03-04-18-54-47-423.png
>
>
> Our profiler shows a significant amount of allocations coming from
> {{ComponentInfo.encodeComponentPath}}:
> !image-2022-03-04-18-54-47-423.png!
> We know the exact length of the strings we are encoding and decoding, so
> pre-sizing the {{StringBuilder}} should be an easy improvement.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)