From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9568 invoked by alias); 2 Aug 2002 01:48:20 -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 9547 invoked from network); 2 Aug 2002 01:48:18 -0000 Received: from unknown (HELO myware.mynet) (24.221.190.179) by sources.redhat.com with SMTP; 2 Aug 2002 01:48:18 -0000 Received: from redhat.com (myware.mynet [192.168.7.70]) (authenticated bits=0) by myware.mynet (8.12.3/8.12.3) with ESMTP id g721ihfw018161; Thu, 1 Aug 2002 18:44:43 -0700 Message-ID: <3D49E40B.7060900@redhat.com> Date: Thu, 01 Aug 2002 18:48:00 -0000 From: Ulrich Drepper User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020726 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Roland McGrath CC: GNU libc hackers Subject: Re: libio mmap changes References: <20020802013042.212B51BA1B@perdition.linnaean.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00007.txt.bz2 Roland McGrath wrote: > I implemented this in what seemed the clean way, which was to have a > separate "maybe_mmap" jump table that is used when a possibly-mmap'able > file is first opened. Well, this is the cleanest solution but... Function tables in DSOs are not cheap. I cannot say in the moment whether there is a better method but I want to mention this here for the benefit of all. If you have to design some code in future avoiding function tables is advised. -- ---------------. ,-. 1325 Chesapeake Terrace Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA Red Hat `--' drepper at redhat.com `------------------------