From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: treesitter local parser: huge slowdown and memory usage in a long file Date: Tue, 11 Jun 2024 09:36:41 -0700 Message-ID: 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> <62264a36-da2f-4653-8048-74bb8bfb669e@gutov.dev> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20296"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "Ergus via Emacs development discussions." , Stefan Monnier To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jun 11 18:37:48 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 1sH4VH-000552-Rt for ged-emacs-devel@m.gmane-mx.org; Tue, 11 Jun 2024 18:37:47 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sH4UU-00027S-9j; Tue, 11 Jun 2024 12:36:58 -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 1sH4UT-00026o-8F for emacs-devel@gnu.org; Tue, 11 Jun 2024 12:36:57 -0400 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sH4UR-0004jI-Mj for emacs-devel@gnu.org; Tue, 11 Jun 2024 12:36:57 -0400 Original-Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1f692d6e990so55057295ad.3 for ; Tue, 11 Jun 2024 09:36:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718123814; x=1718728614; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Dri/4VH6CPgtKFRWfMB8Dk6RsRxedPVaq/nbrnjvtAE=; b=Dugj37RydpCSLUCAFy6T8Ay3NAMOwE8FmQmFCs6jzeSzJkvR21jrRAY3ce5h0cawy2 WrwxTkxZkDfpApuyV9q4K+EGp0Uk1pLKEqMMlOADX2jJpKsYnWmi6CZGjpK3OGa9DbvV eofVlDEuzMLytJoND5N5MwpFzOpYqOK8FFjDw+cqFj4dU1jbTMbcP4EqZwVeU2LF8wFc mUeqV3Hvw8JnpjisJkGQl0lVNJUGFhaQyWrag9RTaYqv2ljkU6jVE/M5Z7TWMc12Lth9 jninrF9ohVziH9sPExKE1XEVOOFBoWrdOkE5Kp09OxpKIytjGxpSKScrn+tXfB35922J 1wFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718123814; x=1718728614; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Dri/4VH6CPgtKFRWfMB8Dk6RsRxedPVaq/nbrnjvtAE=; b=VZ8TJwrUckvDwvwU/WPP1EwfXaMZ0uWdS6UBtTIsyCsmnLC/EZJG9fAcEK3494fS4k 4EJX+xmwHImbeF8hNES3e0RNaom/Y6AEfaa+LTkQ/VqCqzYORIWB2dXNC7MHgc+TEJVx sR1k8yaw+nOeeCIiSfdLmE5o30yFQGJ9MPWPv003RWwdtn1nEgQ3ECrPfvF/Dj12CNNZ 2MqE4A08t15l6yV24nmwAkCo9g4xyv1qfVGYfETZQTToj5vRMF1CCxUqh92+GddlK7Uk dvDtPLYcMGpkg/pHV4rIZqN5tES/dmgWIVfFm/zW5f7CEag+aTnSCY65Jh01RyAlhqNF kSPg== X-Gm-Message-State: AOJu0YzjRaJk823TdrFICIpefRz61DdX43sjxOK83Nd041xdLvWeVr4g liMYnkZGpRFgvDx85h6BQ5/gbFsb1NqL8zvhKJOovubGXDGih6NYyjU/KA== X-Google-Smtp-Source: AGHT+IHLTR8AKGjLnzVqu0Fw9N5/acOCGnPrm3SDx+p13QcW5jilQhgdrRhNYdoX7D+koIvLMSYijw== X-Received: by 2002:a17:903:245:b0:1f4:b703:881 with SMTP id d9443c01a7336-1f6d03771c9mr131091255ad.50.1718123813829; Tue, 11 Jun 2024 09:36:53 -0700 (PDT) Original-Received: from smtpclient.apple ([98.47.187.88]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f71a32010asm35273515ad.104.2024.06.11.09.36.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2024 09:36:53 -0700 (PDT) In-Reply-To: <62264a36-da2f-4653-8048-74bb8bfb669e@gutov.dev> X-Mailer: Apple Mail (2.3774.600.62) Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=casouri@gmail.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:319979 Archived-At: > On Jun 6, 2024, at 5:13=E2=80=AFPM, Dmitry Gutov = wrote: >=20 > 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. >=20 > Sorry, you have already documented it, of course. Just in a separate = commit. Indeed =F0=9F=98=81 Yuan=