From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#56682: Fix the long lines font locking related slowdowns Date: Sat, 23 Jul 2022 16:25:34 +0200 Message-ID: References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <837d44jr4p.fsf@gnu.org> <83bktghrn0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23109"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: 56682@debbugs.gnu.org, gregory@heytings.org, monnier@iro.umontreal.ca To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 16:26:18 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 1oFG58-0005bb-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 16:26:14 +0200 Original-Received: from localhost ([::1]:50678 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFG57-0003vy-9e for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 10:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFG4w-0003tl-GF for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56223) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFG4w-0002T2-7T for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFG4w-00061N-30 for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2022 14:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56682 X-GNU-PR-Package: emacs Original-Received: via spool by 56682-submit@debbugs.gnu.org id=B56682.165858634723125 (code B ref 56682); Sat, 23 Jul 2022 14:26:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 23 Jul 2022 14:25:47 +0000 Original-Received: from localhost ([127.0.0.1]:45972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFG4h-00060v-6r for submit@debbugs.gnu.org; Sat, 23 Jul 2022 10:25:47 -0400 Original-Received: from mail-ed1-f52.google.com ([209.85.208.52]:33283) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFG4c-00060a-I5 for 56682@debbugs.gnu.org; Sat, 23 Jul 2022 10:25:46 -0400 Original-Received: by mail-ed1-f52.google.com with SMTP id t3so8886615edd.0 for <56682@debbugs.gnu.org>; Sat, 23 Jul 2022 07:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :user-agent:mime-version; bh=44UfqjN03yGUQCQ+ZmRSs5zYRuLUaH3dhBH9jnFX6pk=; b=GqRNkebCcSNN601MruU6/kY9TkHdwuifzHpDxbsZqfAZNUwen7Ij5GXeSsghTTVDBE hlC5mO6p+YbaJfIrLwBmkTzNNxlk4v7U3bNsA5EiJEbBElXMk8iTsiuxn9z2PGBC5jy4 ggKSFfMl79plI0ZcbWRBuMAnyEr3SZZ55YwxmUusMN8Tm2LIL342dmi3xmUJMm43m6uC C58m98CLGxVRCZ064WTDNmhSWrMG7RXyDAx/ZSjZtON/EMkVaP2FmwlNW/gsDsbOlNLz 2Jhqn8z2R298v8ZgExKOl5n/bJb0xDDLmNdbm9L4nkLWTVRIdoWSNIFXJ4vAibD38psS seCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:user-agent:mime-version; bh=44UfqjN03yGUQCQ+ZmRSs5zYRuLUaH3dhBH9jnFX6pk=; b=ASu+aGMeWkTmzVRdCOi+zz4jz7q3ij5ucQT99sI3goevy+eUD1A3WlmUa4xwANX0pJ AfbdqZ0yvbgu5HgAYodD3prTa5hpGE6MT66n4pxYOtGf5LD/Qp+XQR5fGgeO7bJM4rOC OfdAdwAaCRtFrqoVjTK4UCWYjncFioypVn2L9vTeENigzVTOOxmocY65x2K1er1QGcqI Yd+J1A35/O+iMnPGNtG9bxxtb+XezO2Wc1lhciQAbIjnW0o5+8wrsnjIZq5tle0Q9bkj nMz4nvFkbTr2X0KQnJ6xFnv+A62m6mScPv5OzbVTGrHMV5AX/OcZXfbt4IAs1+GDumc2 QVXg== X-Gm-Message-State: AJIora9Shrl1T4xeO9Fc0rHXZZU/+jSv288LD2VQr5mMmK76wmykthwW tpsMYP8y15F2e3ZaSREPDuI= X-Google-Smtp-Source: AGRyM1utwJd2euPeaFUu3YXKbea3QRQerKz86gRxNUNhXdKtIcJ3orN0feF3P1a+KHNrkzMRrC1+Nw== X-Received: by 2002:aa7:d458:0:b0:43b:e4ef:bb08 with SMTP id q24-20020aa7d458000000b0043be4efbb08mr965376edr.270.1658586336399; Sat, 23 Jul 2022 07:25:36 -0700 (PDT) Original-Received: from Mini.fritz.box (p54b0c574.dip0.t-ipconnect.de. [84.176.197.116]) by smtp.gmail.com with ESMTPSA id 13-20020a170906308d00b0072fb3704e49sm1266055ejv.46.2022.07.23.07.25.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 07:25:35 -0700 (PDT) In-Reply-To: <83bktghrn0.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Jul 2022 16:42:43 +0300") 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:237746 Archived-At: Eli Zaretskii writes: > And I've found a serious sink of CPU cycles under truncate-lines, and > installed a fix on the feature branch. Gerd, if you have time to > eyeball the fix and comment on it, I'd appreciate. It's commit > 350e97d on the branch. (I can post a more detailed explanation of > what I did and why, if that would help, because the code and the > functions it calls are somewhat tricky.) I'll look at it and come back. BTW, does feature/long-lines-and-font-locking] build for you? I'm getting In toplevel form: cedet/semantic/symref/list.el:35:2: Error: Wrong type argument: number-or-marker-p, nil make[2]: *** [cedet/semantic/symref/list.elc] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [compile-main] Error 2 make: *** [lisp] Error 2 Configured --with-native-compilation.