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 4DD6618B09 for ; Wed, 23 Dec 2015 17:58:47 +0000 (UTC) Received: (qmail 35490 invoked by uid 500); 23 Dec 2015 17:58:46 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 35449 invoked by uid 500); 23 Dec 2015 17:58: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 35422 invoked by uid 99); 23 Dec 2015 17:58:46 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Dec 2015 17:58:46 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A026F2C1F4E for ; Wed, 23 Dec 2015 17:58:46 +0000 (UTC) Date: Wed, 23 Dec 2015 17:58:46 +0000 (UTC) From: "Robert Stupp (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-10917) better validator randomness 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-10917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15069966#comment-15069966 ] Robert Stupp commented on CASSANDRA-10917: ------------------------------------------ +1 on the change. One nit: {{keys.clear()}} could be moved up into the else branch > better validator randomness > --------------------------- > > Key: CASSANDRA-10917 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10917 > Project: Cassandra > Issue Type: Improvement > Components: Local Write-Read Paths > Reporter: Dave Brosius > Assignee: Dave Brosius > Priority: Trivial > Fix For: 3.x > > Attachments: 10917.txt > > > get better randomness by reusing a Random object rather than recreating it. > Also reuse keys list to avoid reallocations. -- This message was sent by Atlassian JIRA (v6.3.4#6332)