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.bugs Subject: bug#63470: [PATCH] Use faster option for running vc-hg status Date: Tue, 23 May 2023 01:33:33 +0300 Message-ID: <3f158aa2-806a-0275-20d3-644f6c5a0633@gutov.dev> References: <83h6shbaiv.fsf@gnu.org> <83bkiobwsu.fsf@gnu.org> <7a9b305b-44b2-38e2-85d6-88c516688e66@gutov.dev> 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="13482"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cc: 63470@debbugs.gnu.org, Eli Zaretskii To: Spencer Baugh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 23 00:34:33 2023 Return-path: Envelope-to: geb-bug-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 1q1E6q-0003G2-8e for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 May 2023 00:34:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1E6P-0008NV-01; Mon, 22 May 2023 18:34:05 -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 1q1E6N-0008Mc-Co for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 18:34:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1E6N-000491-4g for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 18:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q1E6M-0003XH-Hg for bug-gnu-emacs@gnu.org; Mon, 22 May 2023 18:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 May 2023 22:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63470 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63470-submit@debbugs.gnu.org id=B63470.168479482213565 (code B ref 63470); Mon, 22 May 2023 22:34:02 +0000 Original-Received: (at 63470) by debbugs.gnu.org; 22 May 2023 22:33:42 +0000 Original-Received: from localhost ([127.0.0.1]:37142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1E61-0003Wi-Lb for submit@debbugs.gnu.org; Mon, 22 May 2023 18:33:41 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q1E60-0003WW-5Z for 63470@debbugs.gnu.org; Mon, 22 May 2023 18:33:40 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 201195C011B; Mon, 22 May 2023 18:33:35 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 22 May 2023 18:33:35 -0400 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:sender:subject:subject:to:to; s=fm3; t= 1684794815; x=1684881215; bh=4A2qAH7ZQRuGUJROFNMBZULbaduTcVulAzc 2irziUrE=; b=CmpVx4qzUd0rW1JD1waahC6n2MjttbJ9hMibmHGvQCg6WqsVCkm W3xXgZ6RNNhZ0DWv6dxunfUWrbRtkUUQKxtCoeewwk8c3UL20qbixquwCxmxvUMl ZkkbxYQ3STk1Uz3SspQ3UKSOn/TSY9k6h3SQnPfdjFds85ei1DZI9SLSoJPLoR8m fedR5fa5GV5tPNPTSGu9he+k3FxtPndjNekLLBNt+rcekzAkdqLOueRf/7e+bGrJ qfa13g2H+jDdWTRu6mt0TMjOuuKDhvo+QGIJhfami/8MsWN27ImronvDSN53fyyX jwopS4rBFOoR4xA+hsczSe80Zpl5YTFQu5A== 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:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1684794815; x=1684881215; bh=4A2qAH7ZQRuGUJROFNMBZULbaduTcVulAzc 2irziUrE=; b=WCmALlhReR+28vzNkIZmnAoKPhm22CuO9ES/6PZZSG3+RJIS0S5 jqXCVkDhU3Mw90wVGHHFZYBsr7PRrY9G53Bo//ZuoW0/jdmMGNeKBS5YLZ+juDeo d/uNpDdkmHJAhpLO8222GOWT946xy4Vq5ajiMNJQhKnf9SEwzCHfMCvOawTdZnw4 S17fDpxrzEheOIiZD0gw66rtliV+UBrxA8KcqIeOEoP1KNsCcZKYQ+ahs8d3NI6f zwgOBW0qskk5+9E3c/n9x330z43UqtKvyMy4pwoWTHSeCSB9c03choS2n+1s4W3V 2/iLTzVqXqxz/ea3Q3SQ/5RDFHRGiN/z7Hw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeejvddgudduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepiefgteevheevveffheeltdeukeeiieekueefgedugfefgefhudelgfefveel vdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 May 2023 18:33:34 -0400 (EDT) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262197 Archived-At: On 19/05/2023 17:34, Spencer Baugh wrote: >> Thanks! It does look better, performance-wise. >> >> Would you say that the performance of project--vc-list-files could be >> similarly improved for Hg? Or does the Rust implementation in question >> already get used for 'hg status .', as long as there is no "re:" >> involved? > As of very recently in Mercurial trunk, yes, the Rust implementation > will be used for project--vc-list-files. (It only just got support for > -0) > > Although note: currently the Rust implementation doesn't support "hg > status somefile"; that will fall back to the Python implementation. So > "hg status ." would be slow, actually, but "hg status" (as > project--vc-list-files inexplicably seems to do, despite passing "." for > file-or-list, based on inspecting with (vc-edit-next-command)) is fast. > > (either way though, I'm working on making "hg status somefile" work in > Rust, since that will make vc-hg-state fast) Nice! Thank you.