From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: point-at-final-line Date: Tue, 30 Jan 2018 05:32:08 +0200 Message-ID: <83tvv4ggxz.fsf@gnu.org> References: <868tckgl1y.fsf@zoho.com> <87vafom6af.fsf@bsb.me.uk> <86r2qcf1h2.fsf@zoho.com> <86wp01byil.fsf@zoho.com> <86d11sbtch.fsf@zoho.com> <86372obou1.fsf@zoho.com> <86vafk9jit.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1517283057 2160 195.159.176.226 (30 Jan 2018 03:30:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Jan 2018 03:30:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 30 04:30:53 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1egMd2-0007kD-KT for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Jan 2018 04:30:36 +0100 Original-Received: from localhost ([::1]:33794 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egMf3-00089j-Bs for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jan 2018 22:32:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egMeT-00089E-AH for help-gnu-emacs@gnu.org; Mon, 29 Jan 2018 22:32:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egMeO-0007GT-Er for help-gnu-emacs@gnu.org; Mon, 29 Jan 2018 22:32:05 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egMeO-0007GM-Bl for help-gnu-emacs@gnu.org; Mon, 29 Jan 2018 22:32:00 -0500 Original-Received: from [176.228.60.248] (port=2351 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1egMeN-000300-8I for help-gnu-emacs@gnu.org; Mon, 29 Jan 2018 22:31:59 -0500 In-reply-to: <86vafk9jit.fsf@zoho.com> (message from Emanuel Berg on Tue, 30 Jan 2018 03:18:18 +0100) 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115879 Archived-At: > From: Emanuel Berg > Date: Tue, 30 Jan 2018 03:18:18 +0100 > > I don't know about that method. The reason is > it seems to favor your suggestion. And not by > a little! Here are the results in seconds for > 10 000 runs in a buffer of 55 lines: > > ;; point-at-final-line-3 0.08 > ;; point-at-final-line-2 0.38 > ;; point-at-final-line-1 0.55 That's expected, but you should also make sure none of the methods does some caching behind the scenes, because if some do, the cache needs to be disabled or flushed between iterations.