From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Sat, 12 Jun 2021 13:07:59 +0200 Message-ID: <20210612110759.adu6lydcvgfuqc4k@Ergus> References: <83k0n09tkp.fsf@gnu.org> <837dj09p0e.fsf@gnu.org> <20210611232535.b4dyu3a2yxvdixys@Ergus> <87a6nw6jtf.fsf@telefonica.net> <20210612010844.45noqsg7wveeo3yw@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="332"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?B?w5NzY2Fy?= Fuentes , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jun 12 13:09:05 2021 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 1ls1Vg-000AVn-UV for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Jun 2021 13:09:04 +0200 Original-Received: from localhost ([::1]:41984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ls1Vf-0002Mc-IK for ged-emacs-devel@m.gmane-mx.org; Sat, 12 Jun 2021 07:09:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ls1Uo-0001PC-9n for emacs-devel@gnu.org; Sat, 12 Jun 2021 07:08:10 -0400 Original-Received: from sonic304-9.consmr.mail.bf2.yahoo.com ([74.6.128.32]:46333) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ls1Ul-00069K-SF for emacs-devel@gnu.org; Sat, 12 Jun 2021 07:08:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1623496085; bh=mTBG6saBHx6UEZXeZzdVao5dWfsKTUIsFTEW8BGC6Ug=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=t/oMZnrLCs/ho3faAXPimbnnWljDhx2r1UiOLKYoBE7CnAsfcfZblNQ4cK/cb6LgUKFffUO2Z6rSNEVbTdPYnr+P0BJhRbUKSiRcg+D0LlDsBTx1e8saU2KJc6AJdEr6MOMcrYD3gghC5aNISlFWjNpY00AzFM35X0TmH6bO4JkPvslv3tusJ2HnTDn7TO52Bl5MTdyD5n/MXd4gNQyZu4fDQJT7zabQMR7sfEymmhCQ1BW9bHSiSKupM4sNkG70SrjMOJAIJuRSmyiXrtFIMLBcOgtV7bX1SkIt7LiyFYBwSQGKLoO0ZRkM1012WGZRi8TRxjBtACuGH82mKaroYQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1623496085; bh=7bgTbTzhl3aSj/ne21SxVRBWCI6yZ9LasXAxWeZMuwF=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=lqDvVGMnGvDVFcgUqsMJmQkkvGgeXpwzT3QDOvjrvZltjXJ1EzBThT2GDYJyYXc9cuLrAQbzQw/LIkSL4suYURearPe0/7dce+uWN/JF2cURARmamkyn/4u8EOFYlAiNASwccI9keVFyqWygRIpBFq/jNlqJKOGwl+l1ns3CnoL737CTRajRhsDqhU4/8ATteJ490MXggFIxkbvHd2xFjpCMPlmkmKaEXkgKIX64Ng2tYPvxCG6x5/OiCertxyWQqHCb85rBBA/62lX8hmSswpsyLUWODflx6Liw4ki3tl+p9GZ3c0NHSsiJjqNti5IZckpS6PqbgeMul5m7qBhFOg== X-YMail-OSG: ozeZ2_wVM1noeuA37AYB0I_USEcmqFQ13mkf1khCKVb75lQnWbsSC0jNMx7t4fm DSNOsJVXf6zZnULeiEufss7L470Sj6PWk_8kEU2eKrnkDw7TMl82LfaW2sNATIdz1DJzmKbzrjle ir6sGg7Iwfjryl_95N63uICpfmD.XuadAorLJ4kevFOLx5ZAgxfsneVQ4qY_NP36FWuQOC8UPkY9 qH3.yJlN7pjm6lUIspydZAUsX4S87crQ3qr4e1dG.mfq11Ux7ha6s8TndoFqNI7UvZnkHORhnqxl 0ubi76DvmF0KArqjHNbDaUad9aWIwWCqYz7epdAsahSjC9yyaWoS64CqgsnA2fhdJpVIokJjwS8M 2HefelzUVnY2M25Qa2RhX1DeSOlilv5rjkR3lVDriymtOY920b97P8dvmb7zfm2pEv0lON55DKmY nRlm2cK7CqNqXASBYY1HkljgaP6DxAl6lcSz8kr9SVqkYiQ6xvLGuZDK9CuJsS_86rmieEM2mNq1 ZqlcR8lQhQcoPPxkx0bpKcf1lYgZiQ4fAAE0LHXsjxu0FmU_bOoAfDrVrfNfMLf4Ofw3BrVZ4T7e hZKPna5wjTIHTcrZeK7KWBFTO.m0Qy6V4IDZXCTB_b.NRCE8jJkvBThYaPrDba8cn7Jy18_7HSja cDZS4rQGobDC1BaW.1BLxtbZ2eNe6cRAdBwnp8UTjNeJppG65fQzIjzKkghTWvLHb0umwLVXcb5l cFy6c.o4HzPboz2VVD0smOXLrXLs.5s0tu_crCBwA.MAw2VOyl4I93yDJAPoBGQpvDVS8GOnM43K d9c1ZrcHG3ESwArQ5LN6TEhcm1XI609nhb3a0KZHaq X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Sat, 12 Jun 2021 11:08:05 +0000 Original-Received: by kubenode512.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 5e67d568ec73f78541648934dbf142f2; Sat, 12 Jun 2021 11:08:03 +0000 (UTC) Content-Disposition: inline In-Reply-To: X-Mailer: WebService/1.1.18368 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.128.32; envelope-from=spacibba@aol.com; helo=sonic304-9.consmr.mail.bf2.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, 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.23 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:270752 Archived-At: On Fri, Jun 11, 2021 at 11:20:58PM -0400, Stefan Monnier wrote: >> But any way just to start: tree-sitter parses all the text in xdisp.c, >> (in my machine), in 0.12 seconds from scratch and re-parses it (reusing >> the tree) 10 times faster; in 0.008 ~ 0.01 seconds. > >or is it just >the time for tree-sitter to do the actual parse for itself? > This one. It was just a 5 minutes benchmark: https://github.com/Ergus/tree-sitter-benchmark > > Stefan >