Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C62418CE5 for ; Fri, 25 Dec 2015 09:39:50 +0000 (UTC) Received: (qmail 14663 invoked by uid 500); 25 Dec 2015 09:39:49 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 14602 invoked by uid 500); 25 Dec 2015 09:39:49 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 14285 invoked by uid 99); 25 Dec 2015 09:39:49 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Dec 2015 09:39:49 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9D22F2C1F5D for ; Fri, 25 Dec 2015 09:39:49 +0000 (UTC) Date: Fri, 25 Dec 2015 09:39:49 +0000 (UTC) From: "Vladimir Ozerov (JIRA)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-2273) Arrays.asList() should not be used to 1- and 2- elements. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Vladimir Ozerov created IGNITE-2273: --------------------------------------- Summary: Arrays.asList() should not be used to 1- and 2- elements. Key: IGNITE-2273 URL: https://issues.apache.org/jira/browse/IGNITE-2273 Project: Ignite Issue Type: Sub-task Components: general Affects Versions: ignite-1.4 Reporter: Vladimir Ozerov Fix For: 1.6 There are several places in code where Arrays.asList is used as follows: 1) For a single element. These places should be replaced with Collections.singleton() to avoid unnecessary array allocations. 2) For two elements. Here we should create our own "doubled-singleton" implementation. Some of these places are located on hot code paths (e.g. cache PUT). -- This message was sent by Atlassian JIRA (v6.3.4#6332)