From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: eldoc-mode suspend Emacs for about 20 seconds when point moved on `pcase` Date: Sat, 01 Jun 2024 09:43:57 +0300 Message-ID: <86zfs5nowi.fsf@gnu.org> References: <665abc68.170a0220.37c58e.69e4@mx.google.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22928"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 01 08:44:38 2024 Return-path: Envelope-to: geh-help-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 1sDITm-0005nP-3l for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 Jun 2024 08:44:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sDITA-0000Su-Dh; Sat, 01 Jun 2024 02:44:00 -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 1sDIT8-0000SQ-9v for help-gnu-emacs@gnu.org; Sat, 01 Jun 2024 02:43:58 -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 1sDIT8-0004tI-1w for help-gnu-emacs@gnu.org; Sat, 01 Jun 2024 02:43:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QwNpE1WzC2qVFYRUyzfuC6WdE1vMI24Gllxih/zNZOQ=; b=gOR/6rGnEJ3M 4Rn2X8Wh6BW0S1eNCFxDTLFfTIA3FpjiKNXyv0DgK0OZNFfmxId7h8Ktul2HJnSwTsfeO4fSa9cOh Az7BgY4ol4kjn4jLKPxcpkjk4jkn8Xbac4MzBXgzVx1SLPRPs6dRF8LEZ/hqHRROi29KEAWFYQGgo bzXqBLykdsQzQtypImqcZyrvc+HbKytC5IQwMtm6yvx3LJ0/J/v2ADGOT0ln2JkrlMIfw5ZiyqSMt C/sYyk07DSBkmq5F+ekj1F76eQ04crQ2NVakXxUekQbxWZCsDKJaDU7NVuNRhYhtAvCy01A31SJkU D9BuHQRvyC8Tyjq81BJG8w==; In-Reply-To: <665abc68.170a0220.37c58e.69e4@mx.google.com> (numbchild@gmail.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146840 Archived-At: > From: "Christopher M. Miles" > Date: Sat, 01 Jun 2024 14:14:51 +0800 > > I don't know why `file-name-case-insensitive-p` used so long time. How long? Can you measure that in absolute time units? The case-sensitivity test of a filesystem on macOS is more expensive than on other systems, because it requires a runtime test that issues a system call for the file in question, and potentially goes up the filesystem tree until it obtains a definitive result. But I'd be very surprised if even this complexity could explain 20 seconds, so it is important to have see the absolute times you measure. It is also important to understand why the 20-sec delay happens in your "normal" configuration, but not in "emacs -Q".