From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115128 invoked by alias); 4 Jul 2018 04:55:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 115111 invoked by uid 89); 4 Jul 2018 04:55:11 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway36.websitewelcome.com Received: from gateway36.websitewelcome.com (HELO gateway36.websitewelcome.com) (192.185.179.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Jul 2018 04:55:08 +0000 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 3F6DE400C7C6E for ; Tue, 3 Jul 2018 22:55:53 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id aZopf6qTpaSeyaZopflKkc; Tue, 03 Jul 2018 23:55:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=xXrg4ZI/F9/3K7vLMcnvJoh4ouAxFeGqVlHKy/JAq5c=; b=caQ+yVLtulEm+1TfSKK7llfWDT m2Zwc+WyOGs0u/T9IpM3+LSrbu4tMIZlxSgltNbHmUVi6RMYcR6CaciAUsG9ylI/bezkHbKTBG2N1 jT0/IrBVl4YThLV9XT5MYC5gR; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:49806 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1faZop-002L07-BS; Tue, 03 Jul 2018 23:55:07 -0500 From: Tom Tromey To: Simon Marchi Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [RFA] Use std::vector for moribund_locations References: <20180605192346.5509-1-tom@tromey.com> Date: Wed, 04 Jul 2018 04:55:00 -0000 In-Reply-To: (Simon Marchi's message of "Wed, 4 Jul 2018 00:51:38 -0400") Message-ID: <87lgarpplh.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-07/txt/msg00070.txt.bz2 >>>>> "Simon" == Simon Marchi writes: Simon> Just a note that this changes an "unordered remove" to an "ordered remove". Simon> If we don't need to keep the relative order of the remaining elements, it Simon> might be good performance-wise to keep the original behavior. This could Simon> be done by keeping the original code structure (iterating by index) and Simon> calling undordered_remove. Somewhere else, Pedro pointed out the unordered_remove template function in common/gdb_vecs.h. Tom