bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62368: 29.0.60; Evaluating predicates before creating captured nodes


From: Yuan Fu
Subject: bug#62368: 29.0.60; Evaluating predicates before creating captured nodes in treesit-query-capture
Date: Tue, 21 Mar 2023 21:49:37 -0700

X-Debbugs-CC: dgutov@yandex.ru

Dmitry, when you have time, could you try your benchmark in bug#60953
with this patch? I made predicates evaluate before we create any nodes,
so #equal and #match should be more efficient now, when there are a lot
of rejections. In the same time #pred is made slightly worst since they
now create a lisp node and discard it. (But this can be fixed with a
little more complexity.)

Yuan

Attachment: pred-first.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]