[
https://issues.apache.org/jira/browse/WICKET-6992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561060#comment-17561060
]
ASF subversion and git services commented on WICKET-6992:
---------------------------------------------------------
Commit 60c24bc0194f83647e2b8277f6101ba98501b657 in wicket's branch
refs/heads/wicket-9.x from Andrea Del Bene
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=60c24bc019 ]
WICKET-6992 fix for missing method CharSequence#isEmpty
> Reduce object creation and wasted memory in Url toString() methods
> ------------------------------------------------------------------
>
> Key: WICKET-6992
> URL: https://issues.apache.org/jira/browse/WICKET-6992
> Project: Wicket
> Issue Type: Improvement
> Affects Versions: 10.0.0, 9.11.0
> Reporter: Andrea Del Bene
> Assignee: Andrea Del Bene
> Priority: Minor
> Fix For: 10.0.0, 9.11.0
>
>
> The processing for toString() in the Url class is a bit expensive. I think we
> can do better by using String concatenation, avoiding copying byte[]/char[]
> arrays, and sizing StringBuilders effectively.
> More could be done to improve this, but these changes are not too aggressive.
> Ideally a common StringBuilder would be passed around, like the charset, to
> accumulate the String as processing is done.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)