From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yoav Marco Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter integration on feature/tree-sitter Date: Wed, 11 May 2022 18:40:24 +0300 Message-ID: <87tu9wukbt.fsf@gmail.com> References: <87y1zabmbt.fsf@gmail.com> <5F186EBD-CD21-422B-8B4F-0D5424173334@gmail.com> <875ymdwf76.fsf@gmail.com> <011DA1A3-0FA8-4449-878A-FD6B336B0F1B@gmail.com> <8735hhw75p.fsf@gmail.com> <83czgks4ss.fsf@gnu.org> <87wnesuw63.fsf@gmail.com> <83pmkkqhft.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17076"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.3; emacs 29.0.50 Cc: casouri@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed May 11 18:29:54 2022 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 1nopDm-0004NH-5Q for ged-emacs-devel@m.gmane-mx.org; Wed, 11 May 2022 18:29:54 +0200 Original-Received: from localhost ([::1]:52750 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nopDk-0007ff-SF for ged-emacs-devel@m.gmane-mx.org; Wed, 11 May 2022 12:29:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noopT-0007Sl-6Y for emacs-devel@gnu.org; Wed, 11 May 2022 12:04:48 -0400 Original-Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:55845) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noopQ-0005AT-Tg; Wed, 11 May 2022 12:04:46 -0400 Original-Received: by mail-wm1-x333.google.com with SMTP id m62so1489758wme.5; Wed, 11 May 2022 09:04:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=RfNF7D+ZsZmbebgcbZ5xrABtyE9TwYWfJYobYmLvC7w=; b=BUkiDwuN4qBhEms0egbdbfKuoxEt+00o08pdawDntjFJJYPpWlJYaMZ0mQhYXzGzuU BjRX5OJ1isFj2bzRlVyKd57rJ1EBDHtji6sqXV4hofYPFDE4WmbXkpfuiVe5TX8VXu8g ax1YpA81FAg/AWqKs1uGQmTSkcQEh2hb8VLKnE7iKG+VOE0Qqh494TQ24a1wpS6H8q1N 10hBOhp+GOnCM87lkxUMmxMcz8tx36pkW2O8l/ucYxGHj7BUL7I359Mc2xmPKkLCPob7 4VlGDflsaLGYtytW2L+RhB/5FU28Uaz44R/PXtcHiP3ti9qwtwlUR2pye0DJc4JhByfG ZHyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=RfNF7D+ZsZmbebgcbZ5xrABtyE9TwYWfJYobYmLvC7w=; b=fYOlLr68RwLhi7Y1Lb4ZPAPTR5Yt5GTE3Is1HHl3OiEMFladFXx0eyXo4oY1/9ej2D 5R6bLl1YJwrHzkT345823/FxWM/f0oHjszJnzvvlEeoX6v98zMN6uoia1AhwjmKZqBiW bHyY6AfqY0TwKwct0VvFF3LXGAb6wYSEBt4u2i7INvJ5Kv+r/6KeFhsBCDyMiFlADlhW ZwZUhWZnWIrL57F1EskIOAZlg9e1HAEkqAgBPKAUIaBGpC/VmOb6V/+OX2LHTh3PFTPj w4NrkhoP+SNHpPoS5o40JZ+SmbM3Av8+IF4w0DjzQkBkCQxNoPHqLDSJOgvaC0Iekg3n Ac4A== X-Gm-Message-State: AOAM5330Zs6qo2IdOc5xh1GMc9qkgD1AA4ZarJyy9VD/vPmPYk13rpVk dh5BFDpy4RN+gDUpIs/UIUFZa86FZ9E+YQ== X-Google-Smtp-Source: ABdhPJxAxzACbkDBPbGexBb9aDqUEvDAyNmQTKz9EwwiBKCreMzOHgHIYpSifGu88cQmoncuICj+6w== X-Received: by 2002:a05:600c:4144:b0:394:1972:1a73 with SMTP id h4-20020a05600c414400b0039419721a73mr5539047wmm.71.1652285082450; Wed, 11 May 2022 09:04:42 -0700 (PDT) Original-Received: from localhost ([77.126.101.171]) by smtp.gmail.com with ESMTPSA id b11-20020adff24b000000b0020adc114136sm2577641wrp.0.2022.05.11.09.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 May 2022 09:04:41 -0700 (PDT) In-reply-to: <83pmkkqhft.fsf@gnu.org> Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=yoavm448@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, 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-Mailman-Approved-At: Wed, 11 May 2022 12:28:06 -0400 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" Xref: news.gmane.io gmane.emacs.devel:289643 Archived-At: > So let's start with the benchmarks, and please tell what exactly did > Emacs do to trigger fontifications in each benchmark. I called treesit-font-lock-fontify-region, which is the main function used for syntax highlighting in treesit as far as I'm aware. It's the value of font-lock-fontify-region-function after calling treesit-font-lock-enable. (The code's attached in the original mail)