[
https://issues.apache.org/jira/browse/WICKET-6833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Heigl updated WICKET-6833:
---------------------------------
Description:
My profiler shows a significant amount of allocations and list resizing coming
from {{PageParameters.mergeWith}}.
The method unnecessarily creates {{ArrayLists}}, {{TreeSets}}, unmodifiable
wrappers, and does not size the underlying list of {{NamedPair}} correctly when
merging page parameters with multiple values.
It can be called hundreds of times per request for applications with a high
number of mounted pages and resources.
was:
My profiler shows a significant amount of allocations and list resizing coming
from {{PageParameters.mergeWith}}.
The method unnecessarily creates {{ArrayList}}s, {{TreeSet}}s, unmodifiable
wrappers, and does not size the underlying list of {{NamedPair}} correctly when
merging page parameters with multiple values.
It can be called hundreds of times per request for applications with a high
number of mounted pages and resources.
> Reduce allocations when merging page parameters
> -----------------------------------------------
>
> Key: WICKET-6833
> URL: https://issues.apache.org/jira/browse/WICKET-6833
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-core
> Affects Versions: 9.0.0
> Reporter: Thomas Heigl
> Assignee: Thomas Heigl
> Priority: Major
>
> My profiler shows a significant amount of allocations and list resizing
> coming from {{PageParameters.mergeWith}}.
> The method unnecessarily creates {{ArrayLists}}, {{TreeSets}}, unmodifiable
> wrappers, and does not size the underlying list of {{NamedPair}} correctly
> when merging page parameters with multiple values.
> It can be called hundreds of times per request for applications with a high
> number of mounted pages and resources.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)