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 09:07:53 +0200 Message-ID: References: <837d46mjen.fsf@gnu.org> <174616cd5c33bfc14b1f@heytings.org> <837d44jr4p.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="32518"; 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 , Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 09:09:17 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 1oF9GG-0008Jq-Ij for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 09:09:16 +0200 Original-Received: from localhost ([::1]:43364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oF9GE-0006t1-Vh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 03:09:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oF9G2-0006sb-VJ for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 03:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53321) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oF9G2-0006er-L1 for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 03:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oF9G2-0002Um-CK for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 03:09: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 07:09: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.16585600859476 (code B ref 56682); Sat, 23 Jul 2022 07:09:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 23 Jul 2022 07:08:05 +0000 Original-Received: from localhost ([127.0.0.1]:43066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oF9F6-0002Sm-N5 for submit@debbugs.gnu.org; Sat, 23 Jul 2022 03:08:04 -0400 Original-Received: from mail-ej1-f46.google.com ([209.85.218.46]:33732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oF9F3-0002S9-RP for 56682@debbugs.gnu.org; Sat, 23 Jul 2022 03:08:02 -0400 Original-Received: by mail-ej1-f46.google.com with SMTP id va17so12066443ejb.0 for <56682@debbugs.gnu.org>; Sat, 23 Jul 2022 00:08:01 -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=LbJUU1AQ4rWZrtXZBQ9x6OBLlXnihCpNEknpqBPHOpM=; b=Aiffq7LgAppj9ky3P/HsGW2oHtgIoQj7u4HP5Do3HYZRQZ8BMl9X5IdZXl5BWq70r8 8pVfWe1Ar03yHEOTm0v0PAWy3aWX4DjEuyM2x3+gks6LmRNp20gCAddxhIiUI2g0tPIq WJwTIxYwLAHqE/hGO1UFgCIGYGueXch6QkKA1HNDEYmLBAjLTu3CZcje+mef1tULAQCy kXC65XgL7Fr5BXBh+12vOTMFDI7zJb0F0qORIJ35ezJqUJUmgZ/4gyYsavzmVZ83X6j5 U9Fjan1l+eMX2FOdxxeAmtnE+1xEICUTFJ5y2zRwi/z5Iu8OOHotVx9fjnMaD5FRZyYc ZUyA== 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=LbJUU1AQ4rWZrtXZBQ9x6OBLlXnihCpNEknpqBPHOpM=; b=2esBEBHU6iZ/a+I9rljL612l9GkKjk8lGYTwYJUOpvVEDy09XwGMmF+CAsesaGiYQg 9+H/yI/bp4lEAXLF7fWL54jPmVcWahm9GzVAPLHsSkWzh3Ud54EKhSYiGVKPFmffx+E7 eOYFExqh8Tyf6wrW9iqHGTGfoLGWKn6vKtca+DubAWehYJUragKjHTELbrKayJV3zGy3 UGqpRvrqnKUHzNNj6fnonCHxmR2HMZhge5mc+Nqql93aqoOC1vSdwfcoD9xDMijFnnJS iDojQ8KIYbQ+OGb4H8ywAu/FYlU6LKOB22h5z2EJRxNPIPYTK37w5dgvBxkBghYxGwqq BQ3Q== X-Gm-Message-State: AJIora8PGD9H1WfxvWS4AEjFYdsPf2lBxPQu/Yf8AB8tqy1LjHP42/eK uZuk5w4nAeepC2jtbj3u6x0= X-Google-Smtp-Source: AGRyM1s501DG8qFXJxEMVn0VtYaVCFyWESmr4pBGghduNl1QhftcAMxBhDlj5TH+wthFAX6hfd/OQw== X-Received: by 2002:a17:906:4785:b0:72e:dd6c:1ba1 with SMTP id cw5-20020a170906478500b0072edd6c1ba1mr2641641ejc.712.1658560075701; Sat, 23 Jul 2022 00:07:55 -0700 (PDT) Original-Received: from Mini.fritz.box (p54b0c574.dip0.t-ipconnect.de. [84.176.197.116]) by smtp.gmail.com with ESMTPSA id w9-20020aa7cb49000000b0043bc99725fasm3059809edt.40.2022.07.23.00.07.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 00:07:55 -0700 (PDT) In-Reply-To: <837d44jr4p.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Jul 2022 09:10:46 +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:237678 Archived-At: Eli Zaretskii writes: > on long-line.xml produces a 15-fold slowdown with font-lock turned on > as compared to its being turned off (203 sec vs 13 sec). > > This is an unoptimized build, so you will probably see times that are > 4 times faster, but I'd be interested in the relative times on your > system. Any explanations of the slowdown are also welcome. MacOS 12.5, M1 chip Head: 792734a6e2cd5558debc8d9fe95d34cb3e809fa4 Improve efficiency of DND tooltip movement ./configure --with-native-compilation The long-lines.xml is 313295 bytes. Hope that's the right one. Font-lock Output ------------------------------------------------------------ on GCs: 14 Elapsed time: 7.880788 seconds off GCs: 2 Elapsed time: 0.885791 seconds