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: Missing snprintf in ucrt mingw + vc-refresh in find-file hook? Date: Mon, 12 Feb 2024 18:49:25 +0200 Message-ID: <86y1bpr5ka.fsf@gnu.org> References: <6aed5106-b78c-49f1-8caa-a7f9d34c161b@gutov.dev> <207528e2-6bec-436e-8868-8e7b707133f6@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16880"; mail-complaints-to="usenet@ciao.gmane.io" Cc: arthur.miller@live.com, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 12 17:50:18 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 1rZZVa-0004A8-1K for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Feb 2024 17:50:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZZUo-0007sc-Ds; Mon, 12 Feb 2024 11:49:30 -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 1rZZUm-0007sL-SZ for emacs-devel@gnu.org; Mon, 12 Feb 2024 11:49:29 -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 1rZZUl-00084M-Qa; Mon, 12 Feb 2024 11:49:27 -0500 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=+moKK9WQygNFKp3LOQJovZeuOCdrmBt3801u3Zu1Jcw=; b=ptbZ+WKwiRNH LScr+hmxEQzPvPusBicYPyjdCZHj2X7gHAlP9pmzkjmqHYg6Rq1PeVe3xjWqfBqUmHQ+U6JaNkLd3 Rbwdra6C/ghBmxSozh2mbZ9H7foqXCN/TfCu1aJ55RdVQ8G7vmQs92ngXg1FUR/rZzxfIOu2Sihu/ tI38s8KcF69H1tKGdaukqnFFGt6ruB3HC5k12vVhlahxKcKq5wE4ZBE7F0g13A92tGBl+FbmfcqZk 06qtTp0V6RV0siwLdVfdmsItdNcR37ZPgkmtPpJFV+3Vw17GQTKD+U4UBRdL3vEg5f4lRJRVprUoU BUjWkViBGX+5FI0024+Ldg==; In-Reply-To: <207528e2-6bec-436e-8868-8e7b707133f6@gutov.dev> (message from Dmitry Gutov on Mon, 12 Feb 2024 16:58:52 +0200) 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:316142 Archived-At: > Date: Mon, 12 Feb 2024 16:58:52 +0200 > Cc: emacs-devel@gnu.org > From: Dmitry Gutov > > >> To have the mode-line indicator up-to-date, I imagine. > > (setq vc-handled-backends nil) solved it. I would prefer such an expensive > > feature to be opt-in not opt-out, or at least better advertised so I don't have > > to find by a chance what Emacs is doing in the background; thanks. > > The fact of the matter is, it's relatively expensive only on certain > platforms, but much less so on the main one that we keep in mind when > developing Emacs (GNU/Linux). If by "certain platforms" you mean MS-Windows, then the command shown in the backtrace posted by Arthur takes between 24 and 30 msec here.