From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#70036: 30.0.50; Move file-truename to the C level Date: Thu, 28 Mar 2024 11:18:23 +0000 Message-ID: <87r0futxj4.fsf@localhost> References: <87le63xzjt.fsf@thornhill.no> <87jzlmd831.fsf@localhost> <87v856wrj1.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15573"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 70036@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 28 12:19:25 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1rpnn0-0003jy-Sd for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Mar 2024 12:19:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpnmm-0001IE-J8; Thu, 28 Mar 2024 07:19:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpnmg-0001Hq-O3 for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 07:19:04 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rpnmg-00053l-Dk for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 07:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rpnmg-0003VS-Mj for bug-gnu-emacs@gnu.org; Thu, 28 Mar 2024 07:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Mar 2024 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70036 X-GNU-PR-Package: emacs Original-Received: via spool by 70036-submit@debbugs.gnu.org id=B70036.171162471013271 (code B ref 70036); Thu, 28 Mar 2024 11:19:02 +0000 Original-Received: (at 70036) by debbugs.gnu.org; 28 Mar 2024 11:18:30 +0000 Original-Received: from localhost ([127.0.0.1]:39200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpnm8-0003Ro-RM for submit@debbugs.gnu.org; Thu, 28 Mar 2024 07:18:29 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:41829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rpnm4-0003Qu-Px for 70036@debbugs.gnu.org; Thu, 28 Mar 2024 07:18:27 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 346BF240104 for <70036@debbugs.gnu.org>; Thu, 28 Mar 2024 12:18:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711624697; bh=td7t6LEN0/qZXYt6Mzs8Ys2JeEOZBjVO8zajkH00fqM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=JecxYgESTMQFJFOqsNYo5vJv3N1AimrGBqf3JlKZafOOlF/LJff+MrkX7z7yfL90G ydqI9+uePMulyiEYTayM6sI/wZD4eFDOj67zNuE2rhmZRjXAstvUOspmmZxdXs1fcK ljqmnBP9T6ZcAdx0pbMf4FIr8AtGbd/ZzBcOeyAD8pcMF+omzr7UEvjFLMgWINGL0/ 5FUsKetkq3e+4/Z1lTHU/EAEeoQQuTQXLoMHScPVJ3ZCdlOoCERBdkt+QmqiYZNsMV 8RWH64HRIt5DfqpUrpt/5r5iTsKNRpN6b8vcdH+6AxRUWERPiAnKa8J3GLUxw3djBA l19EiPecx1aYw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V51HX0pXkz9rxB; Thu, 28 Mar 2024 12:18:15 +0100 (CET) In-Reply-To: <87v856wrj1.fsf@thornhill.no> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282213 Archived-At: Theodor Thornhill writes: > Not sure I understand what you mean. I tried it again, but this time the > call is 100000 times and in an existing file on my system which is > deeply nested. I run emacs with `emacs -Q` from a build on > `30b1b0d7cd8e4d46a601e9737350cda970f6bab0`. > > the relevant part from the profile this time: > ``` > 15478 72% - command-execute > 15440 72% - funcall-interactively > 15439 72% - eval-last-sexp > 15439 72% - # > 15439 72% - elisp--eval-last-sexp > 15436 71% - eval > 15436 71% - benchmark-call > 15434 71% - # > 15434 71% - file-truename > 13536 63% - file-truename > 12224 57% - file-truename > ... > To me this looks like it spends a lot of time in recursive calls No. It is just that your `file-truename' is native-compiled and the profiler is unable to get the details from inside native subr code. You can re-evaluate the defun to reveal the details in the profiler output. Or use Emacs compiled without native-compilation support. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at