From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail
From: David Engster <deng@randomsample.de>
Newsgroups: gmane.emacs.devel
Subject: Re: Semantic font-lock for Java
Date: Fri, 24 Jan 2020 18:00:02 +0100
Message-ID: <87tv4kyelp.fsf@randomsample>
References: <CADm7Y4mgswK2UmTG8ivPZZNXV-WfJBUrBeMhoOLqran4ng_BTg@mail.gmail.com>
 <83eevsx1eh.fsf@gnu.org>
 <CADm7Y4=isYoz05oYk+J597WykFqfbtr7JcxELeYE2-Fq9n7aig@mail.gmail.com>
 <83wo9jtncf.fsf@gnu.org>
 <CADm7Y4kk14xxx1b7heTJYusC+Kqvqadr2c4DXQGEy_63bp-W2A@mail.gmail.com>
 <83iml1s3od.fsf@gnu.org>
 <CADm7Y4=OJraN_DFQtWF=3hsPWQi8+rLcvz4nO5sGQXzyDz6D9w@mail.gmail.com>
 <83k15grflg.fsf@gnu.org>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202";
	logging-data="91550"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Cc: emacs-devel@gnu.org, Anand Tamariya <atamariya@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 24 18:04:03 2020
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1iv2NH-000Nlx-1k
	for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Jan 2020 18:04:03 +0100
Original-Received: from localhost ([::1]:45336 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>)
	id 1iv2NG-00086C-2v
	for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Jan 2020 12:04:02 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47047)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <deng@randomsample.de>) id 1iv2Jn-0003Lo-8B
 for emacs-devel@gnu.org; Fri, 24 Jan 2020 12:00:33 -0500
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <deng@randomsample.de>) id 1iv2Jl-0006Vs-Pb
 for emacs-devel@gnu.org; Fri, 24 Jan 2020 12:00:26 -0500
Original-Received: from randomsample.de ([5.45.97.173]:41050)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <deng@randomsample.de>)
 id 1iv2Jl-0006QC-Bo; Fri, 24 Jan 2020 12:00:25 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=randomsample.de; s=a; 
 h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From;
 bh=v2TM9B5MS0xvzY/h3FGGbIcgRVC69usZL/8Wdab1CQE=; 
 b=fIkWU59rMCKYUyC8w+UkUngJxY9RoVVEG5rMoEIpskI6VbanYtiz1SpMqZ8ekIzCJL2Uk44SO0M8ZFXFzQvx4QuaZViOog+VmWftQAkCzmaAXKT8/kKH2VDVdSWq5p4F;
Original-Received: from ip5f5abab0.dynamic.kabel-deutschland.de ([95.90.186.176]
 helo=void)
 by randomsample.de with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.80) (envelope-from <deng@randomsample.de>)
 id 1iv2Jd-0000a9-LM; Fri, 24 Jan 2020 18:00:17 +0100
In-Reply-To: <83k15grflg.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 24 Jan
 2020 18:20:27 +0200")
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 5.45.97.173
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>,
 <mailto:emacs-devel-request@gnu.org?subject=subscribe>
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org
Original-Sender: "Emacs-devel"
 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.devel:244580
Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/244580>

>> From: Anand Tamariya <atamariya@gmail.com>
>> Date: Fri, 24 Jan 2020 21:45:55 +0530
>> Cc: emacs-devel@gnu.org
>
>> 
>>  > * Off GCs: 0 Elapsed time: 0.840946 seconds
>>  > * Custom GCs: 0 Elapsed time: 1.172106 seconds
>>  > * Builin GCs: 1 Elapsed time: 0.991606 seconds
>> 
>>  I'm not sure I understand these results.  What does each line
>>  represent?  Did you run the same benchmark with the default font-lock
>>  and with your modifications, and if so, which of these lines shows
>>  results for what variant of font-lock?
>> 
>> Off - Refers to when font-lock is disabled
>> Custom - Refers to when my "extract" function is doing the fontification
>> Builtin - Refers to jit-lock mode as that's the default for font-lock mode
>
> So we are talking about a 17% slow-down?  Not bad.

Yes, but to be fair, this does not include the initial parsing by
Semantic/Wisent/Bovine. This is usually done for the whole buffer when
Emacs is idle, and not during scrolling.

-David