From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: point-at-final-line Date: Sun, 28 Jan 2018 19:59:14 +0100 Organization: Aioe.org NNTP Server Message-ID: <86wp01byil.fsf@zoho.com> References: <868tckgl1y.fsf@zoho.com> <87vafom6af.fsf@bsb.me.uk> <86r2qcf1h2.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1517165928 24584 195.159.176.226 (28 Jan 2018 18:58:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 28 Jan 2018 18:58:48 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jan 28 19:58:44 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 1efs9n-0004xV-PG for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jan 2018 19:58:23 +0100 Original-Received: from localhost ([::1]:55826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efsBo-0007RR-Em for geh-help-gnu-emacs@m.gmane.org; Sun, 28 Jan 2018 14:00:28 -0500 X-Received: by 10.223.152.204 with SMTP id w70mr2151954wrb.15.1517165955356; Sun, 28 Jan 2018 10:59:15 -0800 (PST) Original-Path: usenet.stanford.edu!j65no1318327wmj.0!news-out.google.com!74ni18111wme.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: VFF8n9P1H/v9pfNWKwEKwA.user.gioia.aioe.org Original-X-Complaints-To: abuse@aioe.org Mail-Copies-To: never X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:p6rPQUKuaTwCdCXkxBi862No5Vc= Original-Xref: usenet.stanford.edu gnu.emacs.help:221755 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:115872 Archived-At: Stefan Monnier wrote: >> Seems to be virtually no difference >> in performance. > > Try them in a very large buffer. How large is very large? I wrote the below zsh to create large files that look like this: 1f6920fd18f25904026c59ee560f53c815dde2f854e21e40ceb3f3d58fa55ab9 593bc90bcecd16dada33273deb2a79e593703844ccc65a2139928124357c7755 d43d005aeb2bd1b68e264918f99e41aa175b7a9354a171631db0038c68c59f46 09eab885d64735c3fcd49d650cf1d237025faf9e40ae356017c07fab9db2005c With 10 000 lines there was still no difference. With 100 000 lines and a file size of 6.2M, the results were... identical. create-bogus-file () { local file=$1 local lines=$2 rm -r $file for l in {0..$lines}; do dd if=/dev/urandom count=1 2> /dev/null | sha256sum | ( read rnd _; echo $rnd >> $file ) done } -- underground experts united http://user.it.uu.se/~embe8573