You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Paul Nicolucci (JIRA)" <de...@myfaces.apache.org> on 2018/06/13 14:59:00 UTC
[jira] [Resolved] (MYFACES-4237) [perf] Performance update when
checking for duplicate ids
[ https://issues.apache.org/jira/browse/MYFACES-4237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Nicolucci resolved MYFACES-4237.
-------------------------------------
Resolution: Fixed
> [perf] Performance update when checking for duplicate ids
> ---------------------------------------------------------
>
> Key: MYFACES-4237
> URL: https://issues.apache.org/jira/browse/MYFACES-4237
> Project: MyFaces Core
> Issue Type: Improvement
> Components: JSR-372
> Affects Versions: 2.2.12, 2.3.1
> Reporter: Paul Nicolucci
> Assignee: Paul Nicolucci
> Priority: Minor
> Fix For: 2.2.13, 2.3.2
>
>
> In org/apache/myfaces/view/facelets/compiler/CheckDuplicateIdFaceletUtils.java we currently do the following:
> {code:java}
> if (existingIds.contains (id)) {
> ....
> }
> {code}
> We can increase performance by doing the following:
> {code:java}
> if (!existingIds.add (id)) {
> ....
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)