From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Missing snprintf in ucrt mingw + vc-refresh in find-file hook? Date: Mon, 12 Feb 2024 20:05:36 +0200 Message-ID: <63a4aea1-b757-469b-8653-f634f9e88543@gutov.dev> References: <6aed5106-b78c-49f1-8caa-a7f9d34c161b@gutov.dev> <207528e2-6bec-436e-8868-8e7b707133f6@gutov.dev> <86y1bpr5ka.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30189"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: arthur.miller@live.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 12 19:06:40 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 1rZahT-0007dX-Pu for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Feb 2024 19:06:40 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZagg-0003Sk-4x; Mon, 12 Feb 2024 13:05: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 1rZagc-0003SN-Dc for emacs-devel@gnu.org; Mon, 12 Feb 2024 13:05:47 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rZagZ-0006TV-0p; Mon, 12 Feb 2024 13:05:45 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 2DF585C005B; Mon, 12 Feb 2024 13:05:40 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 12 Feb 2024 13:05:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1707761140; x=1707847540; bh=NLKqz/gzMTm+sAthbMhPOKmOzt/DnqlrsLo64tgMEG0=; b= IsrnePX/iMIL+qS1PE59jQY9ITovMmraCiIao3emD29e2K6dx0mwSdZn8XBmz7xy cSA/Knrl1gnt2bTjRnjli5qMkKK/IoPnD/KjFQpQsdQwrOeo5NynW7A7TxJojMx+ BhpOoKtdLc7a9Wsw8nLIpVb55bb4Y8waQ0Ulx2xkTcDLzW8wZHEZfHNXEvnq0NV+ jsDEdyPZzUHXDI6LnHGpkF3wBOLJPJqFZCPwxIlsO4xoqLCj9VprnFv6xHNAaBKH 3AKpAy465vMPPhCpjNCwoqq70LK0Z/GeF6Jd/M4DnFmbc6jkaO4UP+q6l4VkNQjT Y0iQfUNm32nzAGn7D23s7g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1707761140; x= 1707847540; bh=NLKqz/gzMTm+sAthbMhPOKmOzt/DnqlrsLo64tgMEG0=; b=f wPABRv5qj+tEbZVNRdNngSwEF7MPTE9f9F4VxE8+hQ8wCuKtVYrl69T9pdUUT3Qy ts8xIFhhkbzRV3cArxWHIxTXvSKiPbI/zLcYK/lzwfaXhHuzH4GL7PKqFVS772+m ybQGJarN6SfiWWgY7rUe4tcOMutxuYH13lv8GzuyQyaw7yfZk+qDTSt12PEO1r7q Z21O+QKO1hHWS/gcUTMGiVQmRGWZorZTnBxClmxBCPBhnCBKTxZqGBxetxNxSMIF F2VM8YrQQWXIM1ltxNhPmXydeoraWJhqhLv/aidj0WfVyjjH3yfDTnir+qbMwTfx TK7wNVPcr83vZ4PmFQ+Iw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudefgddutdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 Feb 2024 13:05:38 -0500 (EST) Content-Language: en-US In-Reply-To: <86y1bpr5ka.fsf@gnu.org> Received-SPF: pass client-ip=66.111.4.27; envelope-from=dmitry@gutov.dev; helo=out3-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action 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:316144 Archived-At: On 12/02/2024 18:49, Eli Zaretskii wrote: >> 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 Yes. > in the backtrace posted by Arthur takes between 24 and 30 msec here. If there are several calls required (I don't remember how many we have now), 30x4 can turn into a 120ms delay, which would be perceptible enough and fairly annoying. One of the other problems I recall is that the Git distribution at the time added a shell script called git.bat (or git.cmd, something like that), and that extension took priority over git.exe in the path lookup. And launching that was an order of a magnitude slower than using git.exe directly.