From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#65250: 30.0.50; "C-h f" is much slower on the master branch Date: Mon, 14 Aug 2023 04:59:18 -0400 Message-ID: References: <838ragdzw5.fsf@gnu.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="11811"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65250@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 14 11:00:45 2023 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 1qVTRN-0002tn-5I for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 14 Aug 2023 11:00:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qVTQw-0003wM-Vs; Mon, 14 Aug 2023 05:00:19 -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 1qVTQi-0003kB-5L for bug-gnu-emacs@gnu.org; Mon, 14 Aug 2023 05:00:05 -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 1qVTQh-0007Tq-QD for bug-gnu-emacs@gnu.org; Mon, 14 Aug 2023 05:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qVTQh-0004es-2M for bug-gnu-emacs@gnu.org; Mon, 14 Aug 2023 05:00:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Aug 2023 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65250 X-GNU-PR-Package: emacs Original-Received: via spool by 65250-submit@debbugs.gnu.org id=B65250.169200358517808 (code B ref 65250); Mon, 14 Aug 2023 09:00:02 +0000 Original-Received: (at 65250) by debbugs.gnu.org; 14 Aug 2023 08:59:45 +0000 Original-Received: from localhost ([127.0.0.1]:32918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVTQP-0004d7-0l for submit@debbugs.gnu.org; Mon, 14 Aug 2023 04:59:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qVTQN-0004ck-Gk for 65250@debbugs.gnu.org; Mon, 14 Aug 2023 04:59:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qVTQH-0007N8-Gn for 65250@debbugs.gnu.org; Mon, 14 Aug 2023 04:59:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=N7DonUhVQygwGqdhW5/Whm1dhVntwB8SldHIyvsFA2g=; b=U7VjNQ8c5HstVAqUDgkq 5usQt1DkRETGWIM3RgKrqoj0bZWxhgG0TWo1AWfpVkyMJDw5Hb0W9MYsbqL66KDFSRH2id9n9GZBH QvHs1MrXPfXal+L4Jzt4BLbc1eIGW78YuGDgkTvkf1jmUhY+nFCmiUkh56+R8XVefJZ2uP4QY/ser A584PHurqGX/Tfbl3bUlRX5CfmlVFkr8btQ5UCrW5CcVE/IKcZV6GWSBBP5QlAngfNxToGHMtee9Z GGqnXjD11wVD40S0fZhAl2x1eiSUI8QmOkkwY/vkmuhqqaQZEQdhNueeMcjN+o0wCIaOHjSsOImuY ksljeGhUGtNoOw==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qVTPy-00030X-5B; Mon, 14 Aug 2023 04:59:25 -0400 In-Reply-To: <838ragdzw5.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 12 Aug 2023 18:49:30 +0300") 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:267401 Archived-At: Eli Zaretskii writes: > To reproduce: > > emacs -Q > C-h f dictionary-search RET > > (almost any other function will do, I think). > > This takes a whopping 6.6 sec of CPU on master, vs 2.4 sec on the > emacs-29 branch. These are both unoptimized builds, but even so, > 6.6 seconds of CPU time for looking up a doc string of a function > is too much, I think. > > The patch below fixes the problem in a build without > native-compilation, but won't help in a build with native-compilation. > I wonder why comp-function-type-spec is so expensive? Hi Eli, I'm failing to reproduce it, this is what I did on latest master: ~~~ CFLAGS='-g3 -O0' make bootstrap -j16 ./src/emacs -Q M-: (require 'dictionary) C-h f dictionary-search RET ~~~ The result is pretty much istantaneous on my machine. I guess I'm doing something different from what you did? Thanks Andrea