[ 
https://issues.apache.org/jira/browse/WICKET-6992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Del Bene resolved WICKET-6992.
-------------------------------------
    Resolution: Fixed

> 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)

Reply via email to