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 7F4E0200BF9 for ; Sun, 8 Jan 2017 19:50:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7E37A160B1F; Sun, 8 Jan 2017 18:50: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 91A09160B45 for ; Sun, 8 Jan 2017 19:49:59 +0100 (CET) Received: (qmail 63069 invoked by uid 500); 8 Jan 2017 18:49:58 -0000 Mailing-List: contact dev-help@arrow.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@arrow.apache.org Delivered-To: mailing list dev@arrow.apache.org Received: (qmail 62954 invoked by uid 99); 8 Jan 2017 18:49:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Jan 2017 18:49:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 773832C1F5A for ; Sun, 8 Jan 2017 18:49:58 +0000 (UTC) Date: Sun, 8 Jan 2017 18:49:58 +0000 (UTC) From: "Wes McKinney (JIRA)" To: dev@arrow.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARROW-110) [C++] Decide on optimal growth factor when appending to buffers/arrays MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 08 Jan 2017 18:50:00 -0000 [ https://issues.apache.org/jira/browse/ARROW-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15809840#comment-15809840 ] Wes McKinney commented on ARROW-110: ------------------------------------ for arrays with 128K elements and less it uses 1.5; we could potentially implement a similar strategy, once we write enough benchmarks to measure an impact on making lots of medium-ish arrays https://github.com/facebook/folly/blob/master/folly/FBVector.h#L1141 > [C++] Decide on optimal growth factor when appending to buffers/arrays > ---------------------------------------------------------------------- > > Key: ARROW-110 > URL: https://issues.apache.org/jira/browse/ARROW-110 > Project: Apache Arrow > Issue Type: Bug > Components: C++ > Reporter: Micah Kornfield > > There is some evidence that powers of 2 might not be optimal (the facebook folly library suggests this in there explanation of why they have there own vector type). They use 1.5 (as do other implementations that don't use two). -- This message was sent by Atlassian JIRA (v6.3.4#6332)