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 A65DD200BB6 for ; Thu, 20 Oct 2016 18:34:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A5316160AE0; Thu, 20 Oct 2016 16:34:01 +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 ECFB5160AF2 for ; Thu, 20 Oct 2016 18:34:00 +0200 (CEST) Received: (qmail 10108 invoked by uid 500); 20 Oct 2016 16:34:00 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 9926 invoked by uid 99); 20 Oct 2016 16:33:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2016 16:33:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CD0D72C0D53 for ; Thu, 20 Oct 2016 16:33:59 +0000 (UTC) Date: Thu, 20 Oct 2016 16:33:59 +0000 (UTC) From: "Greg Hogan (JIRA)" To: dev@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-4869) Store record pointer after record keys MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 20 Oct 2016 16:34:01 -0000 Greg Hogan created FLINK-4869: --------------------------------- Summary: Store record pointer after record keys Key: FLINK-4869 URL: https://issues.apache.org/jira/browse/FLINK-4869 Project: Flink Issue Type: Sub-task Components: Core Affects Versions: 1.2.0 Reporter: Greg Hogan Assignee: Greg Hogan Priority: Minor {{NormalizedKeySorter}} serializes records into a {{RandomAccessInputView}} separate from the memory segments used for the sort keys. By storing the pointer after the sort keys the addition of the offset is moved from {{NormalizedKeySorter.compare}} which is O(n log n)) to other methods which are O\(n). Will run a performance comparison before submitting a PR to how significant a performance improvement this would yield. -- This message was sent by Atlassian JIRA (v6.3.4#6332)