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.devel Subject: Re: file-remote-p being called too often? Date: Wed, 17 Jan 2024 14:00:39 +0200 Message-ID: <83o7dkb254.fsf@gnu.org> References: <26022.62049.617163.993056@retriever.mtv.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35474"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 17 13:01:19 2024 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 1rQ4bf-00093V-Kw for ged-emacs-devel@m.gmane-mx.org; Wed, 17 Jan 2024 13:01:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rQ4bC-0004nE-KV; Wed, 17 Jan 2024 07:00:50 -0500 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 1rQ4bA-0004m9-Sl for emacs-devel@gnu.org; Wed, 17 Jan 2024 07:00:49 -0500 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 1rQ4bA-0001b0-JY; Wed, 17 Jan 2024 07:00:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=adFtnMBGb4Uj3cDmFEQ3R9lAbyiJulAa77UPklF5gMQ=; b=bPZfzjpKZS85Rg8GdsKB azVRdBbmdFrgS0H2izSJ23T+J2qIpixeu+u5NtZBwXEysZ/fZ12UIaU74o4ipgxvJByHEj6EM1YWk iY/UvR4pLe/pXa+8wy91XpQf1uyVLxf8Df4mjg1GIk3aL4XuqZ/G7Dc/3VnR2zbU/db0ApHpiM+Mt Je2YsAFK/elUrkf4TbLLXPdjUR/Yip8FMoLsd5VLsDVWEysNY81LWM1CMZ0GRDf8SXhloPwWCQgCD eYZyTs3AaTxNDGdEDIjkRYxEIRfGZuKO7SkePUKbKJLUTQNa72YSaK8bN2Wq0/6h+ZG1bbbzDrrXz SJipcCyu9P5o+w==; In-Reply-To: <26022.62049.617163.993056@retriever.mtv.corp.google.com> (raman@google.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:315036 Archived-At: > From: "T.V Raman" > Date: Tue, 16 Jan 2024 13:17:21 -0800 > > this is with emacs built from Git@HEAD: > Discovered while profiling code in *scratch* via profiler-report: > > It looks like file-remote-p gets called from a timer (not started by e) > and that that function shows up as being one of the ones eating cycles. Thanks. I cannot reproduce this, and you didn't post the actual profile you see. In my naïve attempt to reproduce I didn't see file-remote-p in the profile I collected. Is this in "emacs -Q"? If so, please show the recipe for reproducing this, starting from "emacs -Q". Also, what version of Emacs is that? If this is not in "emacs -Q", perhaps the profile you will post will give a hint as to what optional features cause this. (And why is this posted here instead of the bug tracker?)