Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 47AAD20049B for ; Mon, 14 Aug 2017 14:36:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4640D165057; Mon, 14 Aug 2017 12:36:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8A057165051 for ; Mon, 14 Aug 2017 14:36:08 +0200 (CEST) Received: (qmail 28679 invoked by uid 500); 14 Aug 2017 12:36:05 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 28669 invoked by uid 99); 14 Aug 2017 12:36:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Aug 2017 12:36:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0B2E21A09B1 for ; Mon, 14 Aug 2017 12:36:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.918 X-Spam-Level: X-Spam-Status: No, score=0.918 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_FAIL=0.919] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hmXo336zgPVh for ; Mon, 14 Aug 2017 12:36:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 24C455FB2C for ; Mon, 14 Aug 2017 12:36:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AC652E0A32 for ; Mon, 14 Aug 2017 12:36:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5935E2140C for ; Mon, 14 Aug 2017 12:36:00 +0000 (UTC) Date: Mon, 14 Aug 2017 12:36:00 +0000 (UTC) From: "Thomas Andraschko (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (MYFACES-3435) [perf] _DeltaList: use ArrayList as parent MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 14 Aug 2017 12:36:09 -0000 [ https://issues.apache.org/jira/browse/MYFACES-3435?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Andraschko updated MYFACES-3435: --------------------------------------- Resolution: Fixed Status: Resolved (was: Patch Available) > [perf] _DeltaList: use ArrayList as parent > ------------------------------------------ > > Key: MYFACES-3435 > URL: https://issues.apache.org/jira/browse/MYFACES-3435 > Project: MyFaces Core > Issue Type: Improvement > Components: General > Affects Versions: 2.0.12-SNAPSHOT, 2.1.6-SNAPSHOT > Reporter: Martin Ko=C4=8D=C3=AD > Assignee: Martin Ko=C4=8D=C3=AD > Priority: Minor > Fix For: 2.3.0 > > Attachments: _ComponentChildrenList2.java, MYFACES-3435-2.patch, = MYFACES-3435-7.patch, MYFACES-3435.patch > > > Two internal classes _DeltaList in API: > 1) now use delegation pattern, but are always initialized with an ArrayLi= st instance -> use inheritance and ArrayList as parent -> improvement in m= emory area, reduces number of GCed object in one request/response of (_Delt= aList instances/2)=20 > 2) initialize expected size of _DeltaList (for example, number of validat= ors per one component is perhaps never 10, use: new _DeltaList(5)) > 3) use indexes in 'for' instead of iterator (java.util.RandomAccess) -> = improvement in performance -- This message was sent by Atlassian JIRA (v6.4.14#64029)