From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qDFTMoijqGG6BgEAgWs5BA (envelope-from ) for ; Thu, 02 Dec 2021 11:44:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CDMALoijqGEyVQAAB5/wlQ (envelope-from ) for ; Thu, 02 Dec 2021 10:44:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2A4262AA2 for ; Thu, 2 Dec 2021 11:44:24 +0100 (CET) Received: from localhost ([::1]:48164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1msjZe-0005KI-4V for larch@yhetil.org; Thu, 02 Dec 2021 05:44:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1msjYz-0005Jw-Ch for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 05:43:41 -0500 Received: from [2607:f8b0:4864:20::634] (port=40744 helo=mail-pl1-x634.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1msjYx-0004Pk-DR for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 05:43:41 -0500 Received: by mail-pl1-x634.google.com with SMTP id v19so19920047plo.7 for ; Thu, 02 Dec 2021 02:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:references:user-agent:in-reply-to :message-id:mime-version; bh=IxUtwtEGtNIS4hgRxLJBHh8okuH5J38kKqYEcKKzO2s=; b=HMhJ8yo20RqTLXQ0G9tbCnUQXIoM3SkB9a6pyr8UCtJhQ3M0QtkzIvqaZ1K3Zo8ioN HJz+K2fJPIjCE9hHI3wQLYuLzc8B4eaBEvBOKaCNb8qA3HNrriZWqNAHEigxS0QaUDqd hS0FeHbxcnkH2NjHfAX9pG9HbOUXTG11V/ZXQRMa9ZCGWNWcD4xXRptI+qU7rVitfb2b qfhwNFg52Jte9BrWZ6j9A5SiHrAUyQvw8HnR+uxU96e2soTQBt3sGEtVbhu67/rurO+l kuBRV5Rg4uKQlRcqI96Uoc8NsMtH1Hes3OkEKBDO2C1afoHDh4jVTL9vyc/yNxuLBUB0 wJVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:references:user-agent :in-reply-to:message-id:mime-version; bh=IxUtwtEGtNIS4hgRxLJBHh8okuH5J38kKqYEcKKzO2s=; b=2UCkz8kLDThFePM1DMxTtVmSvGnbUfqTxgpdwMQO0iWlY7Mw3XhQ3OJMTE/MMqaLnq QoDplGpGF0UyMeObEgqrtDoxmddRXflYoAtb1WUCo7qaqvVKh5gtesMhuQ2ydpsxzsFv JClbdHWEEKqayhc/cxOK4TFnxHlMSkRCqTWYVWY49KBFw4/rzZb6nm4VZ7b3Y40mS4j7 85L5KR+NrUBkZ5NNjl3uRW5NisLC31FkMpWrnGuwttprBXI8R5zNmpJNvLwniK4ARn3R ZcKfZlN0OWJ0bejKlDtzMe+b70FjZnGobX4QJQVeB09hHyCafh1ntfuo//UxtSp7ZgNz UFlA== X-Gm-Message-State: AOAM533gmuvKBZ66FtnlkDm6cfXTrl3P3rTZcU/NBLkiK+mCW3hNmrgO CpkiK1nhmwcTTxMt3WcTwfs= X-Google-Smtp-Source: ABdhPJwTI0BkDoZCJoqfybBCsXYv660/008AJ5Z1Pgg4f5+KFvcWIsJVqVGWb6jzhof188N79xQcGw== X-Received: by 2002:a17:90b:4c89:: with SMTP id my9mr5019460pjb.229.1638441817760; Thu, 02 Dec 2021 02:43:37 -0800 (PST) Received: from localhost (61-245-128-160.3df580.per.nbn.aussiebb.net. [61.245.128.160]) by smtp.gmail.com with ESMTPSA id n3sm2320366pgc.76.2021.12.02.02.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 02:43:37 -0800 (PST) From: Timothy To: Ihor Radchenko Subject: Re: [ANN] An Org parser for Julia Date: Thu, 02 Dec 2021 18:30:24 +0800 References: <87o85zpdi8.fsf@gmail.com> <87k0gn71uz.fsf@localhost> User-agent: mu4e 1.6.9; emacs 28.0.50 In-reply-to: <87k0gn71uz.fsf@localhost> Message-ID: <87ilw7p9re.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::634 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=tecosaur@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638441864; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IxUtwtEGtNIS4hgRxLJBHh8okuH5J38kKqYEcKKzO2s=; b=b0K25aaHu9Bl3fGcIgux0aaE0MHzOsOoY75reBM+wTjNG/avCGDVuS0nA67QW5QxVpUpdH 1hvciEyk7Ale2fr+iIZNp/nFtW3whpWGz47QOihbsTLuXSQKltcR5LPHXl32Xw0RE/Ardn D2bNr0uhGCrZCB31WH5ONIXHRJGWPFgIS/p3wnqZXjG/OArw+8D76Zr9hhXL2k/32IFzuA 4prcnPXQCIJzFDQHiG7CxRp2QNytMgsY6Ed9N5jHh1i6SSh7Pytf/s/AvIkXGgxdqXxsf+ ukFhcwhi7xyyy0oGieovjbuvy4yWgrOz+7M1Vs0ezJO2p6SilVMwu0/dKGupfg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638441864; a=rsa-sha256; cv=none; b=U2hl9VyEA91TGdh9gB/Qb3JUjuTsC45j/4+Eq7+YsAy7jZBeVCNhK6RvB0MVmy6SRhvo7X y+8CcYDJe2d/hkyIyjWwwcZjcO8jkLDlYTKXvI2WPNXSI23A7FmScw3N7kODruvnpgvWPt A1sprkvQmFUmUh2bnaTMHCPyxz/3VtnWTgoY3ixe6yOUW71/MlZm3LYWiK/n+Jm0MylLvP Cbuu+EsjlHQGQ3Zz/HhTTncu3zUeRdUTcRATkQLZywMyjnrzPnpD7nyQ0FJXWk9q79oVqh tVU241M+m7okOa9J6ILgIxA4JeZVFoMisjuSymj6dp6Jj46a0j7BZPDBM5xKHw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HMhJ8yo2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HMhJ8yo2; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2A4262AA2 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: Nls8bNS1j5Cc --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ihor, > I am wondering how the third-party parsers are going to scale for larger > Org files. I did some simple testing in the past, and it seems that only > tree-sitter can potentially get sufficiently close to org-element in > terms of performance. I=E2=80=99ve actually had a brief look at my performance using my Emacs con= fig file (which is ~10k lines). On this, my parser is about ~5x faster than org-elem= ent. On a smaller file like the project=E2=80=99s readme it=E2=80=99s closer to = ~10x faster. I=E2=80=99ve also noticed that I can multithread the parsing, which produces a ~9x speed= up on my computer. So, that would be ~40-90x faster than org-element. I have yet = to do much profiling/benchmarking/optimisation though, I=E2=80=99m still in the = =E2=80=9Cfeature adding=E2=80=9D phase. This means that it could well slow down as I add mor= e for it to recognise, but there are probably also unrealised potential performance improvements. > Maybe we should implement a Elisp LSP server instead of many individual > parsers in different languages? For the sake of tools that operate on Org files, not just the Org editing experience, I think it=E2=80=99s quite good if we have a selection of /good= / parsers available for different languages. However, I also think an LSP server woul= d be good. That=E2=80=99s why I have , even= if I haven=E2=80=99t spent anywhere near as much time on it as I would like (it=E2=80=99s barely= a skeleton at the moment). > tree-sitter vs. org-element on 15M Org file Might you have a link to this file? I=E2=80=99d be interested to try it. All the best, Timothy --=-=-=--