From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#57669: 29.0.50; C-n, C-p off under long lines Date: Fri, 09 Sep 2022 17:12:19 +0300 Message-ID: <838rmsd4cc.fsf@gnu.org> References: <87y1uujufi.fsf@dick> <83k06effg6.fsf@gnu.org> <87tu5ijcqg.fsf@dick> <2e25ca87e3d9ee13ba3e@heytings.org> <87illxka46.fsf@dick> <8335d1dr39.fsf@gnu.org> <87mtb8hezl.fsf@dick> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9440"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gregory@heytings.org, 57669@debbugs.gnu.org To: dick Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 09 16:13:24 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 ) id 1oWel2-0002Na-3i for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Sep 2022 16:13:24 +0200 Original-Received: from localhost ([::1]:35940 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oWel1-0000QR-6N for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Sep 2022 10:13:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWekh-0000Pf-Io for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 10:13:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46173) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oWekg-0001TR-JV for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 10:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oWekg-0001eI-4Z for bug-gnu-emacs@gnu.org; Fri, 09 Sep 2022 10:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Sep 2022 14:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57669 X-GNU-PR-Package: emacs Original-Received: via spool by 57669-submit@debbugs.gnu.org id=B57669.16627327536303 (code B ref 57669); Fri, 09 Sep 2022 14:13:02 +0000 Original-Received: (at 57669) by debbugs.gnu.org; 9 Sep 2022 14:12:33 +0000 Original-Received: from localhost ([127.0.0.1]:34872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWekD-0001db-0U for submit@debbugs.gnu.org; Fri, 09 Sep 2022 10:12:33 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:42898) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oWek8-0001dM-SD for 57669@debbugs.gnu.org; Fri, 09 Sep 2022 10:12:32 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42936) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWek3-0001HT-LA; Fri, 09 Sep 2022 10:12:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=906mVGpZ1cJcZTKXg1qVQaUBP4Hh9ewKwVTVEYstAv4=; b=RgaASMJ2ccyi fg822HG0kL6cKnxBgzJT03GzZ/34MpjMCqKywMt26Sh+HviRexLua3VDcfe9Tx9tyMpAZ3DB03vey ptonaNWpEeTT1+T73/5FXccztfLVDEIzKRxU8B2B4TiBRmk/V9jG9+rctDBzUCxaG5IwXbBR4IHEZ pvbb+QDE6GdxKkt5DXzvojRyI7INGsTKAonbhLqBBa32ZZl3Ba6tHV43/cMZzfX5WMLJl4WIjBDDC jhN29pTbMs+36s9G46tBVbk7nUMfzQSqubO/dGaffUH28EKM5mDBxKifgISsP424wA8R9Vm7gfbf+ jnWCg4VDDMEL2+ZHXgX1eg==; Original-Received: from [87.69.77.57] (port=3483 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oWek3-0002Mt-43; Fri, 09 Sep 2022 10:12:23 -0400 In-Reply-To: <87mtb8hezl.fsf@dick> (message from dick on Fri, 09 Sep 2022 09:08:46 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:241978 Archived-At: > From: dick > Cc: gregory@heytings.org, 57669@debbugs.gnu.org > Date: Fri, 09 Sep 2022 09:08:46 -0400 > > After all Commercial Emacs's original attempt at "making the best of > a bad situation" was the impetus for your own poke at the pig. This has NIH written all over it. > And to be clear, you're going from "ineffable" performance to just > "underwhelming." As of cb036a7 you still need find-file-literally for > some semblance of respectability. > > OUTPUT: > > Under long-line-threshold=nil find-file 62s > Under long-line-threshold=10000 find-file 27s > Under long-line-threshold=nil find-file-literally 30s > Under long-line-threshold=10000 find-file-literally 4s It should be clear that comparing performance for 10000-character lines with performance for 10001-character lines will produce only mild speedups (but two-fold speedup is not to be ignored). In the wild we see files with much longer lines, like tens of MBs. So if you want to be fair, measure the performance when lines are much longer than the threshold. For even more insight, see what happens to performance as function of line length.