From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id DdLfIhmvqGFYMgEAgWs5BA (envelope-from ) for ; Thu, 02 Dec 2021 12:33:45 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mDjzHRmvqGFSYAAA1q6Kng (envelope-from ) for ; Thu, 02 Dec 2021 11:33:45 +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 D98893FAE for ; Thu, 2 Dec 2021 12:33:41 +0100 (CET) Received: from localhost ([::1]:44038 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mskLM-000703-LI for larch@yhetil.org; Thu, 02 Dec 2021 06:33:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mskKq-0006wh-OX for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 06:33:08 -0500 Received: from [2607:f8b0:4864:20::52a] (port=40522 helo=mail-pg1-x52a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mskKo-00014P-Kk for emacs-orgmode@gnu.org; Thu, 02 Dec 2021 06:33:08 -0500 Received: by mail-pg1-x52a.google.com with SMTP id l190so26731494pge.7 for ; Thu, 02 Dec 2021 03:33:05 -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=eGSLOTEjMF9CaqjEM0VMJ0hQPzQ14inHxWnzxvIuhek=; b=NCj5HXu/JMabRxMq1J2BEs5Ix0Pyi3z4wDftNdsrni5htl11ixlr7klRiQDWPrPZxg TRQfT0d3ka5aioRRnsSr0hZCVgXGGdCduPsYNRJmYRIxoQyabcSb+uEXd7G4P6a50alA u0Fyh4iOrCTPfpU8eIAtXrQJ9W/gUECFfs5XhsVxi2n1h145tdtqahtsBdILoUtIfLj1 06dps0N9uYl9sD5DNpXa7Ku1lcnUdLjXoO9cZGRFBY7/MxD4sS6Y4jToAjNKqNif5b0y tYUWyg+krcc/wXBPFRGwTbXnF7ABKyEcywggB6X4EI3dTd1LJ/W1ciCHYMg2e1T5QJYf Js6w== 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=eGSLOTEjMF9CaqjEM0VMJ0hQPzQ14inHxWnzxvIuhek=; b=THhNJv7Cqp1FeYPNaTr5R8hMbbDl+NOrEgsIRnS5X5Sp9VSxje2xJ8Y2PSwyFjgvXV rhyvh3N8x1kh39TuyBLEFASNyk6dDc+wUG80hAzu60f8aTSSQ2UzhKAOaJr6yBTNk5gG 36t7oArTrGt4z0CPEb8rrSi8tPUGkOUFkcAiGaqiUsfGQDQezsvgTDSDwz0q/f5Yjs0H 0mTzdFKMVfrrFmQgmZRpT1dfV56ERIW5+1j6LKtlM4RjaSOlLLBMyjc20/+1MnlMUd3U 3xoVB6wRgNWEMc1tsk6VzJ/WgOFzOkGnlcct+FhrU8SkNHbyAjrEzK5qUHFND+yH+b8h JqiQ== X-Gm-Message-State: AOAM532Q0pqvW31vAxi96+bq6//h3gsswSsMYgvfHOFet+0fdpb5cZZ/ 9o6To7f28SaZSgeolLYDdK4= X-Google-Smtp-Source: ABdhPJyrottjyFtTK1eBT7dW8PQIKwyFQQqF6ME2wLqS4TX4B2u1RYo/L9gxhNLE/1IL+Nv8LhY8/w== X-Received: by 2002:a05:6a00:1c65:b0:49f:d8d0:c5d9 with SMTP id s37-20020a056a001c6500b0049fd8d0c5d9mr11730376pfw.72.1638444784611; Thu, 02 Dec 2021 03:33:04 -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 s9sm3251096pfk.198.2021.12.02.03.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 03:33:04 -0800 (PST) From: Timothy To: Ihor Radchenko Subject: Re: [ANN] An Org parser for Julia Date: Thu, 02 Dec 2021 19:20:01 +0800 References: <87o85zpdi8.fsf@gmail.com> <87k0gn71uz.fsf@localhost> <87ilw7p9re.fsf@gmail.com> <87r1avi7ir.fsf@localhost> User-agent: mu4e 1.6.9; emacs 28.0.50 In-reply-to: <87r1avi7ir.fsf@localhost> Message-ID: <87h7brp7gz.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::52a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52a; envelope-from=tecosaur@gmail.com; helo=mail-pg1-x52a.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=1638444821; 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=eGSLOTEjMF9CaqjEM0VMJ0hQPzQ14inHxWnzxvIuhek=; b=TS62WmNGrBi4t+lCZamXx6suwpbPgaxsNhoQJmwvhVi4VA6gnCGJkK9/lM306PXQnKz33U Nid3I+FILWALREJiE0+sYoCK7zhlrWBF1Y2Uqorr70s29Z1rhi1NIXYSfcmPHn34u7oIxJ /hxi0x4bjggcPpWXyDxt/4ai+OxsmuV5OnpTkbXHqhd/AN5P/GYd0T1s2OOvKvA5Yhy4Il dQIsYoVGV62xMOhwAze9bEWE9XHhGS4kBsp4ClTW8Cc77O2VjK0Ch4jBDGVlo/vgBuzwd3 AxxtMtsN/iplRA3tBwhfrkbKE6JFzphmOdmLjTofChzQvcnMKHIBXOBVk7EWzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638444821; a=rsa-sha256; cv=none; b=kuashFQUy4v6yrDaREq6U4oU5RlavAJ7y0XISsZgDtbEm1uFd/GSp6Xmdxji7UYK9pt+zW /qJz5XIU5Q2BUjoeuQM27bJ638I6oGcW8Yzo3sOMDt3K/HeF/AJRFsIJ+4tP129Ev8QyYO QWVe/AXu8+QHSk+n/Cazq734w+OvATR/aOy+o407jOfCg8p1wRCT48Cw7d6RL8xthpV7Ox YnV6/pFd16zWuI+XzDa3yijpaAlu33GmNPiByX7iOB3De9VSPgc9GRn2bWbHFm6yAgVs7P zp9yZLDawlo5YNjuOGjtRfXXRkDV7tInVo0x0pVUdVJGR49iBDv5sAK6RXUfsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="NCj5HXu/"; 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="NCj5HXu/"; 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: D98893FAE X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 62xlgd/L29yq --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ihor, > I am wondering how you did the benchmark. > I just tried the following on my config.org > (): > > The config.org is about 18k lines, but I did not manage to wait enough > for the parser to return. Hmm, I just tried yours and I think something in your file is causing it to= trip up. Not sure what though, further investigation is required. For this alone= I=E2=80=99m glad you=E2=80=99ve shared this with me :) For reference, this is what I=E2=80=99ve been doing: =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 julia> using OrgMode =E2=94=82=20 =E2=94=82 julia> config =3D read("/home/tec/.config/doom/config.org", Strin= g); =E2=94=82=20 =E2=94=82 julia> @benchmark parse(Org, config) =E2=94=82 BenchmarkTools.Trial: 139 samples with 1 evaluation. =E2=94=82 Range (min =E2=80=A6 max): 34.042 ms =E2=80=A6 43.269 ms =E2= =94=8A GC (min =E2=80=A6 max): 0.00% =E2=80=A6 16.10% =E2=94=82 Time (median): 34.857 ms =E2=94=8A GC (median)= : 0.00% =E2=94=82 Time (mean =C2=B1 =CF=83): 35.999 ms =C2=B1 2.490 ms =E2=94= =8A GC (mean =C2=B1 =CF=83): 2.63% =C2=B1 5.30% =E2=94=82=20 =E2=94=82 =E2=96=88=E2=96=81 =E2=94=82 =E2=96=83=E2=96=87=E2=96=88=E2=96=88=E2=96=84=E2=96=86=E2=96=84= =E2=96=83=E2=96=82=E2=96=83=E2=96=85=E2=96=85=E2=96=85=E2=96=84=E2=96=84=E2= =96=82=E2=96=82=E2=96=82=E2=96=82=E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2=96= =81=E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2=96=81= =E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2=96=81=E2= =96=82=E2=96=82=E2=96=83=E2=96=81=E2=96=83=E2=96=82=E2=96=82=E2=96=83=E2=96= =82=E2=96=83=E2=96=81=E2=96=81=E2=96=82=E2=96=83=E2=96=81=E2=96=82=E2=96=82= =E2=96=81=E2=96=82 =E2=96=82 =E2=94=82 34 ms Histogram: frequency by time 43 ms < =E2=94=82=20 =E2=94=82 Memory estimate: 7.17 MiB, allocs estimate: 142185. =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 It=E2=80=99s worth noting that the first time `parse(Org, config)' is calle= d, it will trigger JIT compilation (which for me takes ~15s). `org-element-parse-buffer' seems to tend to take ~200ms. > Also, the tests I mentioned are with my latest commit for > org-element-parse-buffer and on native-compiled Emacs. I=E2=80=99m on native-compiled Emacs, but ~12 commits behind. >> Org LSP > Thanks for reminding about this. I have seen it, forgot it, and now > reinvent the idea :D. I=E2=80=99m just hoping I=E2=80=99ll get to it / get help eventually =F0=9F= =98=82. > Also, it would be great to have a unified test set to verify third-party > parsers and org-element parser. You know, I=E2=80=99ve had the same thought =F0=9F=99=82. >>> 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. > > That=E2=80=99s my personal notes file. I can test it for you if you give = me the > instructions. Cool, since your config seems to have revealed some issues, it would probab= ly be worth waiting till I=E2=80=99ve sorted that out. All the best, Timothy --=-=-=--