From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63596 invoked by alias); 13 Oct 2017 21:10:38 -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 63587 invoked by uid 89); 13 Oct 2017 21:10:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy= X-HELO: outbound-ss-1812.hostmonster.com Received: from gproxy1-pub.mail.unifiedlayer.com (HELO outbound-ss-1812.hostmonster.com) (69.89.25.95) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 13 Oct 2017 21:10:37 +0000 Received: from cmgw4 (cmgw5 [10.0.90.85]) by gproxy1.mail.unifiedlayer.com (Postfix) with ESMTP id DE528175CAB for ; Fri, 13 Oct 2017 15:10:35 -0600 (MDT) Received: from box522.bluehost.com ([74.220.219.122]) by cmgw4 with id M9AY1w00Q2f2jeq019Abw2; Fri, 13 Oct 2017 15:10:35 -0600 X-Authority-Analysis: v=2.2 cv=JNNLi4Cb c=1 sm=1 tr=0 a=GsOEXm/OWkKvwdLVJsfwcA==:117 a=GsOEXm/OWkKvwdLVJsfwcA==:17 a=02M-m0pO-4AA:10 a=0FD05c-RAAAA:8 a=A0OuKFpb86-xIplHuswA:9 a=l1rpMCqCXRGZwUSuRcM3:22 Received: from 184-96-33-178.hlrn.qwest.net ([184.96.33.178]:45066 helo=pokyo) by box522.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1e37E0-002rO1-HZ; Fri, 13 Oct 2017 15:10:32 -0600 From: Tom Tromey To: Simon Marchi Cc: Subject: Re: [PATCH] Replace psymbol_allocation_list with std::vector References: <1507903080-10737-1-git-send-email-simon.marchi@ericsson.com> Date: Fri, 13 Oct 2017 21:10:00 -0000 In-Reply-To: <1507903080-10737-1-git-send-email-simon.marchi@ericsson.com> (Simon Marchi's message of "Fri, 13 Oct 2017 09:58:00 -0400") Message-ID: <87k1zypxdk.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BWhitelist: no X-Exim-ID: 1e37E0-002rO1-HZ X-Source-Sender: 184-96-33-178.hlrn.qwest.net (pokyo) [184.96.33.178]:45066 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTIyLmJsdWVob3N0LmNvbQ== X-Local-Domain: yes X-SW-Source: 2017-10/txt/msg00383.txt.bz2 >>>>> "Simon" == Simon Marchi writes: Simon> psymbol_allocation_list is basically a vector implementation. We can Simon> replace it with an std::vector, now that objfile has been C++-ified. I think this is very nice. I wonder how worthwhile it would be to call shrink_to_fit on the vectors in require_partial_symbols. Tom