From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75342: [PATCH] Speed up asynchronous man page fontifying Date: Sun, 05 Jan 2025 08:01:28 +0200 Message-ID: <86zfk5ajev.fsf@gnu.org> References: <86bjwnf0ge.fsf@gnu.org> <8634hygakc.fsf@gnu.org> <87frlywae5.fsf@> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75342@debbugs.gnu.org, stefankangas@gmail.com, juri@linkov.net To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 07:02:15 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 1tUJiJ-00020k-KE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 07:02:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUJi9-0007i8-FM; Sun, 05 Jan 2025 01:02: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 1tUJi7-0007hx-W7 for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 01:02:04 -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 1tUJi6-0000ti-CV for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 01:02:03 -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:References:In-Reply-To:From:Date:To:Subject; bh=HqKmjdNxz9PKh0cbUyGrYwhNdyHomgrXqZf3T1TM6zQ=; b=ucCsag0Kb0tMq3dUkWg8SEjcyhY1H/3wkao27Ga81MfjZIVo93cuX6LRir5Xep+3MQBDtAO8wEM4vs2EHIFaL6Rnk5l22DSg9vhzfVaJfY6FR4LpHBU5uUjPQqWm+TvuwK8O/jMn/3UHib01gp65Lp7r+iArS1SH/XZ7a9mO+uGZmH5zILVS9Fu64YhBfPz79XdcUZw9YFWxm5FbIPb7dnEztqIC9Ge2BOWId4kDJYQhpZCmOZzMHorJ1+8GnDNCDoUcxW1nmMnDFvNyfkGgvwFkkgL3to84XR7xiYqfEYOcioMcS6YlWsj5IUR9t4cIA4GmRXlcMnwRCtihraC+Bg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUJi6-0004dd-7n for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 01:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 06:02:02 +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.173605690017797 (code B ref 75342); Sun, 05 Jan 2025 06:02:02 +0000 Original-Received: (at 75342) by debbugs.gnu.org; 5 Jan 2025 06:01:40 +0000 Original-Received: from localhost ([127.0.0.1]:59218 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUJhk-0004cy-Hv for submit@debbugs.gnu.org; Sun, 05 Jan 2025 01:01:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56516) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUJhh-0004ck-NN for 75342@debbugs.gnu.org; Sun, 05 Jan 2025 01:01:38 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUJhc-0000q9-1A; Sun, 05 Jan 2025 01:01:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=HqKmjdNxz9PKh0cbUyGrYwhNdyHomgrXqZf3T1TM6zQ=; b=BUYqk3ASvGdcMLNywh9r ylxnQ2b6JM599aQgFJ4z7IhfkbAYo3icIARe2k68aEgseFAy7zozEUq0ao7Be1ykUsY6CsD+qSzzE 589DASycNqlKA2Zcm6pKrQc5W9QA6c8zxVq/ZjsMqbt7yE/xLKTsSE3Up+z5jwFUSO+vqag4gOnVZ GXmoCISipQRG77z4lw3eTI02pxaSHO1uThHB8gb0j1z0L3/lozStHaoFgJIONS632XAp3PeWSoBOo b1FuNnkBgnUtYaxuXzVryKhZ6LZnlmDVHWO1mSpTUm/kc/c7U9TOFWx5mQj55KwK6fffgMS4m42+A vTl9i+G01iDktg==; In-Reply-To: <87frlywae5.fsf@> (message from =?UTF-8?Q?Bj=C3=B6rn?= Bidar on Sat, 04 Jan 2025 23:13:06 +0200) 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:298495 Archived-At: > From: Björn Bidar > Cc: 75342@debbugs.gnu.org, stefankangas@gmail.com, juri@linkov.net > Date: Sat, 04 Jan 2025 23:13:06 +0200 > > Eli Zaretskii writes: > > >> 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. I think Stefan explained that: we read the text in small chunks, and each chunk we read requires non-trivial processing, see the filter function.