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 21:15:05 +0200 Message-ID: <86mss5qyti.fsf@gnu.org> References: <6aed5106-b78c-49f1-8caa-a7f9d34c161b@gutov.dev> <207528e2-6bec-436e-8868-8e7b707133f6@gutov.dev> <86y1bpr5ka.fsf@gnu.org> <63a4aea1-b757-469b-8653-f634f9e88543@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31013"; 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 20:16:20 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 1rZbmu-0007nx-2J for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Feb 2024 20:16:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZblq-0005Ik-3P; Mon, 12 Feb 2024 14:15:14 -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 1rZblm-0005IW-EU for emacs-devel@gnu.org; Mon, 12 Feb 2024 14:15:11 -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 1rZblk-0003Pj-RF; Mon, 12 Feb 2024 14:15:08 -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=eGPinqbjNkkL2oNJiKxpoRi/KF6TVCS4/wkttMfT4u0=; b=Xi241B++T6la Yj0ADPZz89qRvWkKJuWTSZvCSfPpXY0JHZj8WLa/Ck+ejDSN/WR7nL2jeQ1X7epJDxgUIsdgSB8pz piBaFYWITyBexOlRHmbo0r1HSOfylsln9gDKqmkGcaR7LNwxZnt3aE6+8xMOKTgZ/lBrSDjgOLznM pdj9PD2h9acD48LmmnUY5DxBy/7l5BbnC962spPmyOWAIxhoLysDr8MOpAYZE/hWyyxnpzsTR0iyC OihDfpBJ8ZTCTXdVYoU5hVkTMp9VX5SaaeAqFUI9/CXh5IvIRdTwBQjIH32aMegf5xa5Lk0zuc+wd T09uq4wxc+OtUTJVPbvdFw==; In-Reply-To: <63a4aea1-b757-469b-8653-f634f9e88543@gutov.dev> (message from Dmitry Gutov on Mon, 12 Feb 2024 20:05:36 +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:316147 Archived-At: > Date: Mon, 12 Feb 2024 20:05:36 +0200 > Cc: arthur.miller@live.com, emacs-devel@gnu.org > From: Dmitry Gutov > > > 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. I don't experience any annoyance in my Emacs. > 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. I see only moderate slowdown when invoking Git via a batch file: something like 50% slower (i.e. by a factor of 1.5). That is nowhere near an order of magnitude. And again, I'm using this every day, and have yet to see any annoying delays. At least in the Emacs repositories.