From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: master e315544: ; * src/fileio.c (Fdirectory_append): Doc fix. Date: Wed, 28 Jul 2021 19:28:54 +0200 Message-ID: <87r1fis5yh.fsf@gmx.de> References: <20210724171858.1726.43078@vcs0.savannah.gnu.org> <20210724171900.4A26D20D0A@vcs0.savannah.gnu.org> <87h7gjo8sh.fsf@gmx.de> <871r7n1r6a.fsf@gnus.org> <87zgubmt3z.fsf@gmx.de> <87wnpfynqn.fsf@gnus.org> <87y29uyjbm.fsf@gnus.org> <87im0yn24q.fsf@gmail.com> <8735s262a7.fsf@igel.home> <875ywy7dco.fsf@gmail.com> <87bl6mbg7e.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26801"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org, Andreas Schwab , Stefan Monnier , =?utf-8?Q?K=C3=A9vin?= Le Gouguec To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 28 19:29:54 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8nNR-0006kc-S2 for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Jul 2021 19:29:53 +0200 Original-Received: from localhost ([::1]:49170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8nNQ-0002KE-RF for ged-emacs-devel@m.gmane-mx.org; Wed, 28 Jul 2021 13:29:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8nMf-0001eO-PL for emacs-devel@gnu.org; Wed, 28 Jul 2021 13:29:05 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:52103) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8nMd-0006KB-Tp; Wed, 28 Jul 2021 13:29:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627493336; bh=VRl11ssulLJsvnUive6HkO7sAfV5nc8Nr/SBDRR1fX0=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=cPBiMf4OQHlL6f5d9tABquWyCgqWRGWLDQzDvscKIXEoUlzLMcZV54jm5dzHC73hv D6C72bBqZcvfwD4oJOo71Z23+n6wZx3QfJHel08DRQeCqNU+lR+q/QmMPjMIzTxHgc Cks2ar8jnV4sMjpYFJLxpQe/xVNneGt9HR5/W/z8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.119.254]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mkpap-1muH0J25uR-00mK0u; Wed, 28 Jul 2021 19:28:56 +0200 In-Reply-To: <87bl6mbg7e.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 28 Jul 2021 17:39:33 +0200") X-Provags-ID: V03:K1:LE36GhMskWIIP9ku+wFwToRf4Wr1yKZyZRj9IRdV9iSF/8PBO7o lMX+xylbCesnaKL141OeC4x2SF+IpZak2NzBBc1//kUD3hyvZ5ymfTQ7SRKmy4i/1cG6b7Z BIR7ncydnGQEqOZdtPJkHlAOxNzL3VGDhuT+HYaBr4BoA04T6MC7pjd+cPddPvHvFy6nhhA yMqSMs4pxSpABwb1oLBYw== X-UI-Out-Filterresults: notjunk:1;V03:K0:GJ8F2t6M4ZY=:fl1bC/teqp44oV9shvXcAH OpM0Hjaygyot54s/0ZvkS90wZqD7ZXgYK7IRqS6gtx5+0XUsd1/xhrl6pctUBud4ET4tkXz3F azMJ1eobnaKFMvhAALcs27Y2aaju0gkgHFKpJ108uOj5Xwfv5am2B1AekcNwRbM3ZxLsPtn2a sMHjvZk26ZhjzcjjBhwKKgFcTAUyWR0MD7FzF9Ovp3RudUj4WzHac3Yn5eN8XcahD3sMzGfRG RhoKJU1zKNu6yd+Tk90fWa7cAUV0HAJ9JcviJelCOBsV9uCwufQG8uyc0uNCJjE7YBIic7uoc 21y6kpDUC52tW+6yVDQ1dLmFEdqrMQ67LVyb0zosaauLouH54w7sMz4a0VXAOAC20dESzSjAI /HvyexTxXOrEEW6AxDp4zDQAS7QRx9/TSxTrSFaNmS6k+BMQZoJlL3g7cbCggewTLscaF9APM drM8t5pIEaPs4t6sk2XRQ9I0mqImvZfGgFJ5JGD/oyTqNrdlE629b3ppHfwQyX7s+tupA7Kpi AWBsNNMTahkAbuNhmFAgf9vvaznzMM44YAHyCGVQV5UrWCab9UDlyNxjedff1HQYPi7n/vXcu pW0YU0OUl8iFSLYGpTFJZKa2zPwVq94TqTpjI6BUgbD6ZruZwdfcTle9ca/REuekO9S4eqoZK 6A6H+pexPKd2U0tCBUt8DZS4u1uqqJEMoeeKKX0pk0CDIdWX7LEeme0x/pVdwwMA+cc+jXXP1 +OwbrPBSznCSEsVa3Y4OIyEUX2nIAtef3w6qa47GDeOmYdEhuKnkUrNmHUEnDKWgd4pJqW20 Received-SPF: pass client-ip=212.227.17.22; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271774 Archived-At: Lars Ingebrigtsen writes: Hi Lars, >>> This should probably emphasize the fact that it ignores file name >>> handlers. >> >> The NEWS entry specifically, or the docstring and/or info entry? > > I'm not entirely confident that it'll keep ignoring file name handlers, > so the less said the better. If you want file-name-concat being well optimized, you shall not use file name handlers: --8<---------------cut here---------------start------------->8--- (benchmark 1000 (let (file-name-handlers) (concat (file-name-as-directory "/tmp") "foo"))) => "Elapsed time: -0.000004s" (benchmark 1000 (let nil (concat (file-name-as-directory "/tmp") "foo"))) => "Elapsed time: 0.000049s" --8<---------------cut here---------------end--------------->8--- It's not heavy in terms of absolute time, but still a factor of 10. Best regards, Michael.