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: Mon, 22 Apr 2024 22:09:02 -0700 Message-ID: References: <2DB11528-C657-4AC1-A143-A13B1EAC897A@gmail.com> <6049335.lOV4Wx5bFT@fedora> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.1\)) 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="6628"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dmitry Gutov , emacs-devel@gnu.org To: Vincenzo Pupillo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Apr 23 07:09:58 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 1rz8Pm-0001WB-2v for ged-emacs-devel@m.gmane-mx.org; Tue, 23 Apr 2024 07:09:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rz8PC-0004IT-GQ; Tue, 23 Apr 2024 01:09:22 -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 1rz8PB-0004I9-Ck for emacs-devel@gnu.org; Tue, 23 Apr 2024 01:09:21 -0400 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rz8P6-00067p-CB for emacs-devel@gnu.org; Tue, 23 Apr 2024 01:09:20 -0400 Original-Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-5dbcfa0eb5dso4064854a12.3 for ; Mon, 22 Apr 2024 22:09:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713848954; x=1714453754; 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=pwDsKsD6uUUevbZZIFTpX+HUYrP0dHdQZhJq/5b9wqI=; b=Ji8N6uJc++Du+Jdwjh7ZeKYAg9pWvTASKIBf9vCALLNbc+6cGkr6ivXv2fnhYWE9AN kSfPRU3VBSGYVzSsdpJTPfh7ucT27UKnaKIsL1k3PJ2cNzmF2zjkQ+BZPjS+ePigtHIr iFT5N08rg3L0mPtju2wi0b6LWrKjeGA0jvOwfkeQNTGtwacbBvjtIspUEtBoAmOVASxZ fmAmBIreRdrt2VwTRN8ijYp37in3ERl3xHPhL0l08P7V/6mMPwYXnaveaz3OVUxERnXW GT5n402MlMWuw0v0a0Wk+RiKnzZP5Dqzp8DeXQWeRHP3EhErhDKaEl0NoZi09JVLs38+ qqfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713848954; x=1714453754; 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=pwDsKsD6uUUevbZZIFTpX+HUYrP0dHdQZhJq/5b9wqI=; b=ofVRqchH/nDZFscTyyw27wD5yvrW16F52WsJBb9uNG9l6lv1fbu7hyjLiZRPKMoS2C MZPg1VWBMGm1gbpu/8BBnQUH2ShPsyxA9M8Tod70o7e2caKhv+9ElBZ9+KsX1u/Bl74U wZ82jGasvfYZ+GGFUBMPOKJIc+JveiWjFSodY4chyFRNDwB+UgUdTXJ+gvVt+1yTdg4T +q7v7lY8DKhhiywr9yyUoPbNJsuh/aTmi210B52FqbQ+cuLQpUxciSQKDy+WeS4c4WV8 ymirgVdsxnHoLYJowT7ldEOcNgDAJdzJiw3dMauuLvx6I962fKxeZcR7CtriwlSpHaGB qu4w== X-Forwarded-Encrypted: i=1; AJvYcCUMna7pU1r8SE0oR/5fdKY6ztqc1T0qgQTOb1yOYO0MUrZm7SG3Y4dS9aRBqE6nIAwIV2gA1Yux1B/RrrwbG9gFmwi7 X-Gm-Message-State: AOJu0YyPyaTkLfPlmsNe9cnhWM/Ey+TJ6yU7OcNhaXwJddp2Uj1xxTaS mbRHVOmYE4jANW4A/SKFewQNEGHgTgNH26LnH+3oLptduttk86rVrd6dng== X-Google-Smtp-Source: AGHT+IG0d4rNiNBqaLC1e4oQJKraJjznEQI8ucmSmOkCE2hh7CmoPTJ8sSONEQwghb0XDMC5JPzUDg== X-Received: by 2002:a17:90a:d3d4:b0:2a5:e1e7:b994 with SMTP id d20-20020a17090ad3d400b002a5e1e7b994mr8996982pjw.19.1713848954433; Mon, 22 Apr 2024 22:09:14 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:641:300:4910:e4f6:f0b8:c91d:e40b]) by smtp.gmail.com with ESMTPSA id p4-20020a17090ac00400b002a3a154b974sm8585279pjt.55.2024.04.22.22.09.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2024 22:09:13 -0700 (PDT) In-Reply-To: <6049335.lOV4Wx5bFT@fedora> X-Mailer: Apple Mail (2.3731.700.6.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=casouri@gmail.com; helo=mail-pg1-x534.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 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:317998 Archived-At: > On Apr 20, 2024, at 12:14 PM, Vincenzo Pupillo = wrote: >=20 > Great job! > I tried your new patch with my usual benchmark, tcpdf.php, and my = php-ts-mode=20 > and it works very well! > Thank you very much > V. Glad it worked! It=E2=80=99s been haunting me for months and now I can = finally sleep soundly at night :-) Yuan=