From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: State of the overlay tree branch? Date: Mon, 19 Mar 2018 08:33:18 +0200 Message-ID: <83y3ioo9qp.fsf@gnu.org> References: <> <<834lldp18f.fsf@gnu.org>> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1521441078 2537 195.159.176.226 (19 Mar 2018 06:31:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Mar 2018 06:31:18 +0000 (UTC) Cc: s.sturm@arkona-technologies.de, emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 19 07:31:14 2018 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 1exoK9-0000Z7-NT for ged-emacs-devel@m.gmane.org; Mon, 19 Mar 2018 07:31:13 +0100 Original-Received: from localhost ([::1]:40464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exoMC-0001rg-PF for ged-emacs-devel@m.gmane.org; Mon, 19 Mar 2018 02:33:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exoM6-0001rM-LB for emacs-devel@gnu.org; Mon, 19 Mar 2018 02:33:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exoM2-0003zm-5v for emacs-devel@gnu.org; Mon, 19 Mar 2018 02:33:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exoM2-0003zg-3M; Mon, 19 Mar 2018 02:33:10 -0400 Original-Received: from [176.228.60.248] (port=1930 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1exoM1-0007jZ-8X; Mon, 19 Mar 2018 02:33:09 -0400 In-reply-to: (message from Drew Adams on Sun, 18 Mar 2018 14:37:39 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:223803 Archived-At: > Date: Sun, 18 Mar 2018 14:37:39 -0700 (PDT) > From: Drew Adams > Cc: emacs-devel@gnu.org > > > If lsp-mode/lsp-ui needs a fast line counter, one can easily be > > provided by exposing find_newline to Lisp. IME, it's lightning-fast, > > and should run circles around count-lines (used by line-number-at-pos). > > Having a fast line counter in Elisp would be terrific. Actually, I see that line-number-at-pos, count-lines, and forward-line should already be fast, as they do exactly what I thought, something I failed to see originally. If that's not "fast enough", a test case showing the problem would be a good starting point.