From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Native display of line numbers Date: Sat, 17 Jun 2017 17:16:49 -0400 Message-ID: References: <83lgoqzm0v.fsf@gnu.org> <83injuzf4e.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497734269 5972 195.159.176.226 (17 Jun 2017 21:17:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 17 Jun 2017 21:17:49 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 17 23:17:45 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dML6H-00019u-1b for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 23:17:45 +0200 Original-Received: from localhost ([::1]:36249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dML6J-000797-1L for ged-emacs-devel@m.gmane.org; Sat, 17 Jun 2017 17:17:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dML5d-000792-Je for emacs-devel@gnu.org; Sat, 17 Jun 2017 17:17:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dML5Y-0003XB-32 for emacs-devel@gnu.org; Sat, 17 Jun 2017 17:17:05 -0400 Original-Received: from [195.159.176.226] (port=58022 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dML5X-0003WQ-Sy for emacs-devel@gnu.org; Sat, 17 Jun 2017 17:17:00 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dML5P-0006ue-7x for emacs-devel@gnu.org; Sat, 17 Jun 2017 23:16:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:OZeVbtyJWBdQ2+fYjI7AglxS/+M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215717 Archived-At: > nlinum performed so poorly in my benchmarks that I was ashamed of > publishing the data. The benchmark entails scrolling through xdisp.c > one line at a time. Oh, yes, I think this is the case where there are too many overlays. There's hope that the new tree-based overlays representation would solve this problem, but I haven't actually checked. There are also other ways to circumvent this performance problem, by flushing the undisplayed overlays every once in a while. I have some code for that in nlinum.el, tho it's commented out, because it ends up triggering re-fontification of the code later on (because currently jit-lock can't be told to refresh nlinum without also refreshing all other clients such as font-lock). It'd be good to improve jit-lock so this can be done better, but clearly this is one of those cases where the more you progress, the more work you have to do. Stefan