From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21458 invoked by alias); 28 Sep 2004 23:07:52 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 21430 invoked from network); 28 Sep 2004 23:07:51 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 28 Sep 2004 23:07:51 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8SN7pa8019949 for ; Tue, 28 Sep 2004 19:07:51 -0400 Received: from zenia.home.redhat.com (sebastian-int.corp.redhat.com [172.16.52.221]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8SN7nr22258; Tue, 28 Sep 2004 19:07:50 -0400 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa/dwarf] Support for attributes pointing to a different CU References: <20040923045723.GA11871@nevyn.them.org> <20040924003412.GB10500@nevyn.them.org> From: Jim Blandy Date: Tue, 28 Sep 2004 23:07:00 -0000 In-Reply-To: <20040924003412.GB10500@nevyn.them.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-09/txt/msg00467.txt.bz2 If you made your queue into a real queue, with head and tail pointers, and had queue_comp_unit not re-queue things that were already queued, then you could replace the two nested loops around load_full_comp_unit with a single, straightforward linked list walk, couldn't you?