From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrey Listopadov Newsgroups: gmane.emacs.bugs Subject: bug#56683: 29.0.50; long lines fix doesn't work correctly when lines are truncated Date: Fri, 22 Jul 2022 08:03:27 +0300 Message-ID: <878rolbu7r.fsf@gmail.com> References: <87h73ab8bo.fsf@gmail.com> <87czdyb3t5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17043"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.6; emacs 29.0.50 Cc: 56683@debbugs.gnu.org To: Gregory Heytings Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 22 07:20:26 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 1oEl5O-0004Hd-Os for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jul 2022 07:20:26 +0200 Original-Received: from localhost ([::1]:37516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEl5N-0006u9-1g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Jul 2022 01:20:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEl50-0006ts-3l for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 01:20:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50110) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEl4z-0007C6-Pn for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 01:20:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEl4z-0002Hm-KM for bug-gnu-emacs@gnu.org; Fri, 22 Jul 2022 01:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrey Listopadov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Jul 2022 05:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56683 X-GNU-PR-Package: emacs Original-Received: via spool by 56683-submit@debbugs.gnu.org id=B56683.16584671558704 (code B ref 56683); Fri, 22 Jul 2022 05:20:01 +0000 Original-Received: (at 56683) by debbugs.gnu.org; 22 Jul 2022 05:19:15 +0000 Original-Received: from localhost ([127.0.0.1]:39854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEl4E-0002GK-Ow for submit@debbugs.gnu.org; Fri, 22 Jul 2022 01:19:15 -0400 Original-Received: from mail-ed1-f43.google.com ([209.85.208.43]:43978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEl4C-0002G4-1k for 56683@debbugs.gnu.org; Fri, 22 Jul 2022 01:19:14 -0400 Original-Received: by mail-ed1-f43.google.com with SMTP id v12so4530556edc.10 for <56683@debbugs.gnu.org>; Thu, 21 Jul 2022 22:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=/ZiYMu7tW08RBQNw37/22XfpW2XPMQUG0GJ/nV2SjsA=; b=PxI96U5mjBoGlYWgNVUnbqbXH26EF0seerEqWfd6ccellnghrbacHLI8w7DD1rQm70 tElTpY8gAhFFjGPjzfyGDMnybaBiTPiJ+Dczn4q47xQ72JdX0BALtz//9Y2v/yt1FsqX 1IvRS+QH3Uqv7mz5W0qxHimpwJp+tl4jSOIU2rf/tOFb2r9Ah30DoQTSK/prW5sZlVjn 5LXJ/kb1g6GdcBqiR2LOxhwlo+1XGuHsCmwWh4N8ppoCcFhEN2i6uJv5gxxDyQ+dfbts 3hA1bzE/NK7sp2d4waZR7789/PID7hb8Lfdmqk9uvQBuxlBhwUvrgPPcBcz7uPWyx92/ Ppzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=/ZiYMu7tW08RBQNw37/22XfpW2XPMQUG0GJ/nV2SjsA=; b=Supi7HMevprv0kS3BS2VdqEwq4wLDgdB9O3l1KuPSCyhAY6+U0gom9xM88djYJ/K1B H+Q4ZTzEaDiy+UEIqcCqWG9MgUb2xEVCAFnbTDUXCg2NsK7OZb7L/1jtdynFPKwaQyNk MMcthGMOzXNSc/be9gOq5sRYQVlDfc8Nhbf+EZInzi76ECXWzQEKnPRpYvub7vEP1BuC 678ygQdC3/wotm3EIxqrRWHJGZNwI+3TZJuOTHIIf2y6lIIS433Nn21ngWLy0imHmAKB 4knPzrNDzmmuL6/j3sqKa068pm7zg7jqpW84RD+/TH5Ub9zg33vN/OMETaR34Sa4Br0h 2vhQ== X-Gm-Message-State: AJIora/YD+DQEmL1jDf0bVuCg0y/hfJNRGLk4uxxATEw2xLRG4b14Bmg C6syEqruzQ5NFbiJzViM0oG56xWPjJE= X-Google-Smtp-Source: AGRyM1tvSR9KdWgIpwc9pR4M4d5mYJVZJRJieKS3CoUsKybCkWv+4T+6Zdd5Vn27Pav1f7I488lT5A== X-Received: by 2002:aa7:cac7:0:b0:43a:c5ba:24a6 with SMTP id l7-20020aa7cac7000000b0043ac5ba24a6mr1742327edt.84.1658467145846; Thu, 21 Jul 2022 22:19:05 -0700 (PDT) Original-Received: from s540.smtp.gmail.com (broadband-90-154-70-5.ip.moscow.rt.ru. [90.154.70.5]) by smtp.gmail.com with ESMTPSA id qc3-20020a170906d8a300b0072b36cbcdaasm1573358ejb.92.2022.07.21.22.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Jul 2022 22:19:05 -0700 (PDT) In-reply-to: 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:237583 Archived-At: > How long is a "really long line" in a log file? Do you think 1000 or > 10000 characters is a reasonable upper limit for your use case? It depends, occasionally there are lines with JSONs maybe one third of the size of the mentioned dictionary.json. But these are rare cases, most of the time the longest lines are about 3000 characters wide, I guess I have to measure it next time. So probably a smaller amount than 10000 to enable optimizations is welcome. One particularly interesting situation is when there are logs which span such long lines on every line, e.g.: 1 log-line-with-1800-chars=E2=86=92 2 log-line-with-3000-chars=E2=86=92 3 log-line-with-2000-chars=E2=86=92 4 log-line-with-1500-chars=E2=86=92 ... 1830 log-line-with-1500-chars In this case, if I wasn't using truncation I would see only the first line of the log, wrapped around and taking all screen space, but since lines are truncated, I have ~70 very long lines displayed on screen. I've taken dictionary.json, and used C-u 70 M-x duplicate-line, and it does seem to perform well (or at least Emacs doesn't hang completely), but there are some occasional slowdowns (Probably because of show-paren-mode). -- Andrey Listopadov