From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKZHg-0000GT-K2 for qemu-devel@nongnu.org; Fri, 13 Sep 2013 15:44:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKZHY-00042U-5y for qemu-devel@nongnu.org; Fri, 13 Sep 2013 15:44:04 -0400 Received: from mail-ie0-x22e.google.com ([2607:f8b0:4001:c03::22e]:34685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKZHX-00042F-WC for qemu-devel@nongnu.org; Fri, 13 Sep 2013 15:43:56 -0400 Received: by mail-ie0-f174.google.com with SMTP id u16so3426882iet.5 for ; Fri, 13 Sep 2013 12:43:55 -0700 (PDT) Sender: Richard Henderson Message-ID: <52336AF5.9050708@twiddle.net> Date: Fri, 13 Sep 2013 12:43:49 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1379066356-14986-1-git-send-email-famz@redhat.com> <1379066356-14986-6-git-send-email-famz@redhat.com> <5233269B.3030803@twiddle.net> <52333B6A.4010201@msgid.tls.msk.ru> In-Reply-To: <52333B6A.4010201@msgid.tls.msk.ru> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v9 5/8] module: implement module loading List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Tokarev Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org, alex@alex.org.uk, pbonzini@redhat.com, Fam Zheng , vilanova@ac.upc.edu On 09/13/2013 09:20 AM, Michael Tokarev wrote: > 13.09.2013 18:52, Richard Henderson wrote: > >> Also, separate the whitelists by type. I.e. > > What for? We are talking about a function whose interface is to only load modules of a particular type, right? Given that we know the set of all modules, and the type to which it belongs, how can it not be most efficient to separate them into different lists, to avoid having to perform some kind of runtime test on each module? r~