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 64D7618C5A for ; Tue, 15 Sep 2015 16:55:52 +0000 (UTC) Received: (qmail 53521 invoked by uid 500); 15 Sep 2015 16:55:46 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 53481 invoked by uid 500); 15 Sep 2015 16:55:46 -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 53468 invoked by uid 99); 15 Sep 2015 16:55:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2015 16:55:45 +0000 Date: Tue, 15 Sep 2015 16:55:45 +0000 (UTC) From: "Benedict (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-10316) Improve ColumnDefinition comparison performance 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-10316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benedict updated CASSANDRA-10316: --------------------------------- Reviewer: 601126228506 Fix Version/s: (was: 3.0.x) 3.0.0 rc1 > Improve ColumnDefinition comparison performance > ----------------------------------------------- > > Key: CASSANDRA-10316 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10316 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Benedict > Assignee: Benedict > Fix For: 3.0.0 rc1 > > > We have already improved the performance here for the basic comparison, however since these happen exceedingly frequently we may as well go a little (easy step) further. This is a really tiny patch, and we should aim to include before GA, but not RC. > Right now we use all of an int for the metadata presorting, but in fact we only need 2-3 bytes for this. We can upcast the int to a long, and use the remaining bits to store the prefix of the _name_. This way, a majority of comparisons become a single long comparison. Which will be considerably cheaper. -- This message was sent by Atlassian JIRA (v6.3.4#6332)