From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18236 invoked by alias); 17 Jan 2004 01:40:56 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 18219 invoked from network); 17 Jan 2004 01:40:56 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.81.54.130) by sources.redhat.com with SMTP; 17 Jan 2004 01:40:56 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id ABB63357B; Fri, 16 Jan 2004 17:40:54 -0800 (PST) Received: from magilla.sf.frob.com (localhost.localdomain [127.0.0.1]) by magilla.sf.frob.com (8.12.9/8.12.9) with ESMTP id i0H1esOi022350; Fri, 16 Jan 2004 17:40:54 -0800 Received: (from roland@localhost) by magilla.sf.frob.com (8.12.9/8.12.9/Submit) id i0H1erss022346; Fri, 16 Jan 2004 17:40:53 -0800 Date: Sat, 17 Jan 2004 01:40:00 -0000 Message-Id: <200401170140.i0H1erss022346@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Jakub Jelinek Cc: davidm@hpl.hp.com, GNU libc hackers Subject: Re: enabling caching for dl_iterate_phdr() In-Reply-To: Jakub Jelinek's message of Saturday, 17 January 2004 00:29:31 +0100 <20040116232931.GL6413@sunsite.ms.mff.cuni.cz> X-Antipastobozoticataclysm: Bariumenemanilow X-SW-Source: 2004-01/txt/msg00065.txt.bz2 > How about extending struct dl_phdr_info and passing an counter in it > to dl_iterate_phdr's callback? That is easy enough. OTOH, it's arguably not much harder for the callback to just compare the results with saved results from the last run and decide that way no new work has to be done. That works with existing glibc's too.