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: Sun, 24 Jul 2022 07:50:42 +0200 Message-ID: References: <837d46mjen.fsf@gnu.org> <8335esjppt.fsf@gnu.org> <837d43j198.fsf@gnu.org> <83y1wjhkkh.fsf@gnu.org> <83wnc3hkdg.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="23791"; 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 Sun Jul 24 07:51:23 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 1oFUWO-0005uq-BM for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 07:51:20 +0200 Original-Received: from localhost ([::1]:47072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFUWM-0003GQ-Uk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 24 Jul 2022 01:51:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44834) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFUW6-0003EJ-O2 for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 01:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFUW6-0004q1-Eg for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 01:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFUW6-0001wy-Aw for bug-gnu-emacs@gnu.org; Sun, 24 Jul 2022 01:51: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: Sun, 24 Jul 2022 05:51: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.16586418517479 (code B ref 56682); Sun, 24 Jul 2022 05:51:02 +0000 Original-Received: (at 56682) by debbugs.gnu.org; 24 Jul 2022 05:50:51 +0000 Original-Received: from localhost ([127.0.0.1]:46710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFUVv-0001wZ-GK for submit@debbugs.gnu.org; Sun, 24 Jul 2022 01:50:51 -0400 Original-Received: from mail-ej1-f49.google.com ([209.85.218.49]:41748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFUVt-0001tI-SY for 56682@debbugs.gnu.org; Sun, 24 Jul 2022 01:50:50 -0400 Original-Received: by mail-ej1-f49.google.com with SMTP id z23so15009940eju.8 for <56682@debbugs.gnu.org>; Sat, 23 Jul 2022 22:50:49 -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=qBpXptFeF0msUBtiATMqoBZDaGnG1bdj9sw7+RyVpvs=; b=IL/b0+pB/gS9YZ5aXRQZOBJ8fY0KVzUZCa4A4gmk/XXasenVtV+WHwbMf6uSCht2zT UWI8eR79Mn3sCTslRns7OzWIuW5B1ALH5cozyE0GLB/RoHv843IyUhrMIKQNAMn3vp/K 2hSDL8PHyCvHobtPExz2AOLH89HohKMu7N6MLeKQMdw2r6o3xpaXjBF031Hd/KOOv6Zu TDU5Ee5vJcUtVU5iq0pAaCSnLL9dfVyBVlIiuODluPZAkYkaIxXF7JQWD5pQGxT1AikV tzaBwSv/Mtg3rLaLd7OfWIIlWePPStDoLIr66QhO45BUEon9+FhYh3s9TPknpR4aQLpW lqow== 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=qBpXptFeF0msUBtiATMqoBZDaGnG1bdj9sw7+RyVpvs=; b=5KqOxl6wV4cQKxNtDawfIKniFBZ+/cmB4QcLwFc2i5F4eBmqD/rjCohP0g+z6Hyons lHIrq+XqiMUKb2zPXPlBF08JqK17Klcz6VLSde0gCZVg46i/Bq1qp/dqXMyxCxi7jmYe bhem1sGFKkPtblpFxmYJMcVkdqN+gm+A1X9LHaRPfN+FOEWubQGbRtqtBSJdAJJesJtV MXBkqV6Hhk7yWsqxD5r7BZjLZ4+ldY1FJdCoAqvf5qwGBvP18azaeJSykxURTcgMvZ6c azcXBO4EDQfdbPtgYbRKOFGndF0DgNUuCNhJHK4kSkOQ/J/EjQ5Yk/cYZS+K4SnN6/+F 7pmA== X-Gm-Message-State: AJIora8Hq+WELNzFEFgd465oq0AYVFnw8OrsampbJb+DhZpMycXrUCDB 6WZLwdIEylUm4VbmxYRyF9k= X-Google-Smtp-Source: AGRyM1tPN/grPkraRVVgXSNsHU7aXP1l/I16rL4w9gJmDdWgmfLftl/e9iNWQcZjQ9x1hbBm4XZcWg== X-Received: by 2002:a17:906:8cb0:b0:72f:6ce7:3a1 with SMTP id qr48-20020a1709068cb000b0072f6ce703a1mr5402907ejc.322.1658641843763; Sat, 23 Jul 2022 22:50:43 -0700 (PDT) Original-Received: from Mini.fritz.box (pd9e36975.dip0.t-ipconnect.de. [217.227.105.117]) by smtp.gmail.com with ESMTPSA id m15-20020a50ef0f000000b0043a2b8ab377sm5166330eds.88.2022.07.23.22.50.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jul 2022 22:50:43 -0700 (PDT) In-Reply-To: <83wnc3hkdg.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Jul 2022 19:19:39 +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:237805 Archived-At: Eli Zaretskii writes: >> My bet is indeed on the mere presence of text properties, plus the >> fact that we need to merge faces. But I could well be wrong. Can't say something about face merging, but "frequent" changes of faces certainly have an effect on iterator performance. It stops, looks up properties again to determine the next stop pos, does what has to be done for current properties... > Btw, I think the best tool for determining this is run-time profiling, > such as with perf on GNU/Linux. Yes, I don't think there is something comparable on macOS. Or I simply can't find it.