Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C068C197EE for ; Wed, 20 Apr 2016 12:51:25 +0000 (UTC) Received: (qmail 22374 invoked by uid 500); 20 Apr 2016 12:51:25 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 22343 invoked by uid 500); 20 Apr 2016 12:51:25 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 22328 invoked by uid 99); 20 Apr 2016 12:51:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Apr 2016 12:51:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 701A72C1F5A for ; Wed, 20 Apr 2016 12:51:25 +0000 (UTC) Date: Wed, 20 Apr 2016 12:51:25 +0000 (UTC) From: "Sam Tunnicliffe (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-11593) getFunctions methods produce too much garbage MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-11593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Tunnicliffe updated CASSANDRA-11593: ---------------------------------------- Reviewer: Sam Tunnicliffe > getFunctions methods produce too much garbage > --------------------------------------------- > > Key: CASSANDRA-11593 > URL: https://issues.apache.org/jira/browse/CASSANDRA-11593 > Project: Cassandra > Issue Type: Improvement > Reporter: Benjamin Lerer > Assignee: Benjamin Lerer > Fix For: 3.x > > > While profiling an heavy write workload on a single machine, I discover that calls to {{getFunctions}} were producing a lot of garbage. > Internally, the getFunctions method use {{Iterators}} or {{Iterables}} functions that creates new immutable collections at each level. > As {{getFunctions}} is called for each SELECT, INSERT, UPDATE or DELETE through the {{checkAccess}} method the impact is not neglectable. -- This message was sent by Atlassian JIRA (v6.3.4#6332)