From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#75342: [PATCH] Speed up asynchronous man page fontifying Date: Sat, 04 Jan 2025 23:13:06 +0200 Message-ID: <27890.4722583079$1736025275@news.gmane.org> References: <86bjwnf0ge.fsf@gnu.org> <8634hygakc.fsf@gnu.org> Reply-To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar 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="39901"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 75342@debbugs.gnu.org, stefankangas@gmail.com, juri@linkov.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 22:14:27 2025 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 1tUBTW-000ADo-7C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 22:14:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUBTA-0002Rk-PS; Sat, 04 Jan 2025 16:14:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUBT8-0002Rb-1r for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 16:14:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUBT7-00013B-P9 for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 16:14:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=eUR3oKiANgoNM+1M9/OWzkijbcEVDUnWgKrSHm1FGaQ=; b=udQe2H+dprH2pc1rzgOnolS+CM+UGmzVKsJIyWv++KEmA8oJMYBDQNGaLwbiJZHG6GSeIRlc2erUlUW5OJOOayE6+HBiMAK1u4s4M1p6m84ZFOW0ltVZBR8reHRae8ncqRmLHXhJBo0teXgL8NKQ6RXVzxMpI2bNuH1nc9Uo1w/reLeJUiworfy0r2NZk0zX0tHoeG5QIBZUQU/lBMVoiUw0+WsTpMwk8JLFCpBiJknJiOgPxWBu5Vqv9P1JUrgT9k3NYf/gFqfRKSGYVExEKn3GOytAGFEPpnDKYvkAYdhdRJ1A9+gvKbV3QYmdz/tVkXP+3+07BeljACN33fSwsQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUBT7-0005Gl-Ik for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 16:14:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 21:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75342 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 75342-submit@debbugs.gnu.org id=B75342.173602520020193 (code B ref 75342); Sat, 04 Jan 2025 21:14:01 +0000 Original-Received: (at 75342) by debbugs.gnu.org; 4 Jan 2025 21:13:20 +0000 Original-Received: from localhost ([127.0.0.1]:57676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUBSP-0005Fa-3u for submit@debbugs.gnu.org; Sat, 04 Jan 2025 16:13:20 -0500 Original-Received: from thaodan.de ([185.216.177.71]:56480) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUBSL-0005FI-Dl for 75342@debbugs.gnu.org; Sat, 04 Jan 2025 16:13:15 -0500 Original-Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 63D04D0002E; Sat, 4 Jan 2025 23:13:07 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1736025187; bh=XZAWTcIWm3hW92iLPsqbNRX2ydLKPKYEqIcUKbsy45s=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=l7okfpwdz6XESUdXFCiTQWaV748wx7RRvn6z0Fs7Z4Hct/msFH5pwwXcT283cd//4 XE6mNokH8qiJEjEOVcKVVBAPXzr5a1gIFF2uMeJK7B0rckEP0yQlilsZ8RKZJuReO9 g//JgwjBuq9lXaXacGztXSqB+hXenPy8/nT4ISLUWYUSsz0XsQAWHCUghWo05MR5zn 017YOYfbGPsAEeMlOhpoaT46MZiaeK2UqDAUh4tF7cmZ15OZlqGkL+TjupN/CvyypE W2LEnj6dAtH4coSxlVYYAQfHnnQuwkYCz/sdyIzTviYPH55XJdb9xII8+3V8anHWXX 1AFIKHOB971ooKqor9XNr9T5U2s/dUIwpFRCX+RWeOPy5eUvhjdfSEOzY11qWf1YCo L0AmZRXKreDsa/gumK+S3s8lIbWQRuL545NmSeJacrD5zv3wShWCUO5s/KgFmUawbt SdDp+kca0+bHXcQvMHHAjl9StDbAvfYi6uzoqXL8ZaJ+n+RlrEXxGLGzCZpgJEVFnR UaA9V4y2mjTXtwK96VAc8bImSjmTg/bWP5RabwHsIMVQcCAMkpuvx9Qu2tJhh5uSb1 nFtUgP8B9PRAwLbsVs24zZQpcsj7u0QE/D7HZ1o8blr3/fPaCqu1bgLmDK0MMptVwp sWJH+swpoGqeEDBYDPm1HiXo= In-Reply-To: <8634hygakc.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 04 Jan 2025 12:03:47 +0200") Autocrypt: addr=bjorn.bidar@thaodan.de; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlH 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298475 Archived-At: Eli Zaretskii writes: >> From: Bj=C3=B6rn Bidar >> Cc: Stefan Kangas , 75342@debbugs.gnu.org, >> juri@linkov.net >> Date: Sat, 04 Jan 2025 11:33:18 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> >> When I set `Man-prefer-synchronous-call` to t, it takes ~1.8 seconds = to >> >> process the same page. I guess that this is the lower bound for how >> >> fast we could make the asynchronous call. >> > >> > Why not make Man-prefer-synchronous-call t by default, then? >>=20 >> The call might take longer on slower machines (or network connections) >> and then block Emacs until the call was done. > > Slower connections (I'm guessing you mean remote man pages?) could be > recognized exempted from synchronous operation. Yeah that's what I meant. > As for slower machines: this is a defcustom, so users of slower machines = can > customize it if the synchronous formatting is too long for them. I don't know yes its customizable but it could lead to some surprises. >> Never block ui unless you can do avoid it. > > Except that this comes at a price here: the time until I can see the > full man page could be very long. So this is not a back-and-white > situation. Why is the price so high? The time to call man should be the same in both asynchronous and synchronous call.