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 44365200BE3 for ; Thu, 22 Dec 2016 14:15:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 432C7160B1F; Thu, 22 Dec 2016 13:15:00 +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 C34FE160B37 for ; Thu, 22 Dec 2016 14:14:59 +0100 (CET) Received: (qmail 92111 invoked by uid 500); 22 Dec 2016 13:14:58 -0000 Mailing-List: contact issues-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 issues@ignite.apache.org Received: (qmail 91915 invoked by uid 99); 22 Dec 2016 13:14:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Dec 2016 13:14:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id BA02C2C1F56 for ; Thu, 22 Dec 2016 13:14:58 +0000 (UTC) Date: Thu, 22 Dec 2016 13:14:58 +0000 (UTC) From: "Vladimir Ozerov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-2297) DirectByteBufferStreamImplV2: add special cases for maps with a single element. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 22 Dec 2016 13:15:00 -0000 [ https://issues.apache.org/jira/browse/IGNITE-2297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vladimir Ozerov updated IGNITE-2297: ------------------------------------ Priority: Minor (was: Major) > DirectByteBufferStreamImplV2: add special cases for maps with a single element. > ------------------------------------------------------------------------------- > > Key: IGNITE-2297 > URL: https://issues.apache.org/jira/browse/IGNITE-2297 > Project: Ignite > Issue Type: Task > Components: general > Affects Versions: ignite-1.4 > Reporter: Vladimir Ozerov > Priority: Minor > Labels: performance > Fix For: 2.0 > > > The biggest hotspot in a simple PUT scenario is Entry[] creation caused by empty HashMap inflation inside DirectByteBufferStreamImplV2 read methods. > It is interesting, that in lots cases the map being read contains only one element. > Looks like this common case could be optimized - create a map with single key/val pair with optional fallback to normal map. -- This message was sent by Atlassian JIRA (v6.3.4#6332)