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: treesitter local parser: huge slowdown and memory usage in a long file Date: Fri, 7 Jun 2024 03:13:06 +0300 Message-ID: <62264a36-da2f-4653-8048-74bb8bfb669e@gutov.dev> References: <2DB11528-C657-4AC1-A143-A13B1EAC897A@gmail.com> <0132CFC2-CFA0-4D58-9632-6E6E03FE57DB@gmail.com> <8E3466C4-0875-4187-ADC3-5C72FF23A24F@gmail.com> <81dab46b-dba3-45d0-b509-1d40f4b116bf@gutov.dev> <6D101DD5-6201-4CA6-A105-28A6DA32C3DF@gmail.com> <46b255d5-d8ec-49ce-b649-02ce8488e873@gutov.dev> <93be1b75-b9f3-4e1c-b014-f6329b155c16@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="33423"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: "Ergus via Emacs development discussions." , Stefan Monnier To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 07 02:13:53 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 1sFNEv-0008V8-Ii for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jun 2024 02:13:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFNEL-0006DK-Ji; Thu, 06 Jun 2024 20:13:17 -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 1sFNEJ-0006DA-E4 for emacs-devel@gnu.org; Thu, 06 Jun 2024 20:13:15 -0400 Original-Received: from wfhigh4-smtp.messagingengine.com ([64.147.123.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFNEF-0005Ne-6V for emacs-devel@gnu.org; Thu, 06 Jun 2024 20:13:14 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.west.internal (Postfix) with ESMTP id 6164318000F0; Thu, 6 Jun 2024 20:13:09 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 06 Jun 2024 20:13:09 -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:subject:subject:to:to; s=fm3; t=1717719189; x=1717805589; bh=5frVPbeSTVf+F7iFTrAE8q3Pvajk3IaWeKPH1vzzpbE=; b= PV8+jTBYFRRpgJqyvBaoR7LMbJhXjXFCbiLABSiS3CyXKmBu8+HTGF6vHQFIsYA9 wu34HzrtKgv9w65DQgr4FXk19ViY4q4z0w1jQy4NcDWmY28pvmd+nWUZHChYoPoq BDh4rj+0ysCgyL6Qme9hs1LSCS6VUU01yyaoz4I0uWDE9aigAuX92RT4WvTQUQ16 uu+3utYOIUlcf3vSbE8cMw+PWDxEtn4xu+hq//vwS6MPqeg4Ek0t8HjLTLGPt0Nm qMsIv12kck5xS8Pf5Sfz3RxuY+1uaLCckR1OOLzQv8P0xb+sIlIhgXAyE7CPulO5 jGkEIyfwuL5O66BVwOtKiw== 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=fm1; t=1717719189; x= 1717805589; bh=5frVPbeSTVf+F7iFTrAE8q3Pvajk3IaWeKPH1vzzpbE=; b=c tFKoCL/whL9cIVfgIzfUoxRgigDlHZYM+wvkci97YnLBsoR6mmEDrBrDo3FFKo5R mgH+6vfgVWWVCBkE9tgNBI3z1/FDTg1+4nliyRJDbVFDks1ZB7UrOv8ZQcZn3Bcx WRUBLBHAe5KBAYH+K0QISGT0HR6tYUSKuVzKUMBjiRXNSecTnFMdGYS0HfRQ68HP ZZFhTToSOwuhqPcVR7A0aqMbVKnHo4hT5VEIJbci2acqmFyv8t01Q4x+NFM1x5Wr 6cdATw6OhIo2P8F2qOT4Ic+rj6gckOWoW4xgbJ8vEJXkPaCLTwBoqG5Osf7WZTYz alv2QGGX+V0Ylef2XzC3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdelledgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffhvfevfhgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepkeefudefgfejffefvdfhteegveevhfekkeekhffgudfhveejteffhfegueet gefgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 6 Jun 2024 20:13:07 -0400 (EDT) Content-Language: en-US In-Reply-To: <93be1b75-b9f3-4e1c-b014-f6329b155c16@gutov.dev> Received-SPF: pass client-ip=64.147.123.155; envelope-from=dmitry@gutov.dev; helo=wfhigh4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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 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:319855 Archived-At: On 07/06/2024 02:59, Dmitry Gutov wrote: > The new variable probably deserves a mention in the manual, although if > the guesser fallback is reliable enough (which it seems to be, given > that we didn't hear seee reports about that specifically) maybe that's > not urgent. Sorry, you have already documented it, of course. Just in a separate commit.