GNU bug report logs - #71454
30.0.50; Performance issues with font selection

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Kai Ma <justksqsf@HIDDEN>; dated Sun, 9 Jun 2024 19:41:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 15:12:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 10 11:12:13 2024
Received: from localhost ([127.0.0.1]:40724 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGggu-0003aZ-QH
	for submit <at> debbugs.gnu.org; Mon, 10 Jun 2024 11:12:13 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47768)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sGggt-0003Zs-En
 for 71454 <at> debbugs.gnu.org; Mon, 10 Jun 2024 11:12:11 -0400
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 <eliz@HIDDEN>)
 id 1sGecs-0004Sd-8r; Mon, 10 Jun 2024 08:59:54 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=kHLdgt/zWggnrY4ek6iwFlZVfvJ5Pw/mRFsWXzrZGNM=; b=MrqijuwDnc9K
 Trxc8EKtI/elRyFRvz69AQ6J78ZMemU7gujOuKJPfsarbDE4rRg8whwA85/5ywD4GrQSIu3/oDvf6
 CbH5hy2lke894w4Vl0pa3bx3B3GK9dwaUYxiunx13fRDNQ95rUV179UjXt4DcP9pTHOL5nxkLA1KN
 CGwNAkaF2XGr2nsel4dwfVK331epQzzPchS8miXKUrDsKJyAp9j/Ohg9kaKuI/WJG+R1VUrFjXEXn
 czYjuH/YK/mbcN4IH5f6hLvkF/rVd1Bne+UFIpPM43D1ITjXXrOyZz2tszcAcOOsOLDZIPEO2DdZL
 Q0fXQKqcpVq4qS9gevppEA==;
Date: Mon, 10 Jun 2024 15:59:52 +0300
Message-Id: <86sexl7y2f.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <4F59591A-23F6-4DB2-A350-52ED24408F39@HIDDEN> (message from
 Kai Ma on Mon, 10 Jun 2024 14:35:50 +0200)
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
 <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN> <865xuh9fmt.fsf@HIDDEN>
 <4F59591A-23F6-4DB2-A350-52ED24408F39@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71454
Cc: jb@HIDDEN, 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Kai Ma <justksqsf@HIDDEN>
> Date: Mon, 10 Jun 2024 14:35:50 +0200
> Cc: Jeremy Bryant <jb@HIDDEN>,
>  71454 <at> debbugs.gnu.org
> 
> 
> 
> > On Jun 10, 2024, at 13:55, Eli Zaretskii <eliz@HIDDEN> wrote:
> > 
> >> Cc: 71454 <at> debbugs.gnu.org
> >> From: Kai Ma <justksqsf@HIDDEN>
> >> Date: Mon, 10 Jun 2024 00:17:55 +0200
> >> 
> >> 
> >>> On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> wrote:
> >>> 
> >>> Would you be able to provide a self-contained series of steps starting
> >>> from emacs -Q?
> >> 
> >> On my machine it is extremely easy to reproduce by simply:
> >> 
> >> 1. emacs -Q
> >> 2. Switch to *scratch*
> >> 3. Copy the provided text into *scratch*
> >> 4. Emacs will freeze for 17 seconds or so, and it cannot be interrupted by C-g
> > 
> > I cannot reproduce this, I get an almost instantaneous redisplay with
> > those characters.
> > 
> > When your Emacs eventually displays the text, how many characters are
> > shown as boxes with hex code, and which ones are those?
> 
> None are hex code here. They eventually get displayed, but it takes a long time.

Then it definitely sounds like macOS specific.  Does anyone know how
Emacs on macOS searches for fonts, and whether there are any
font-caching facilities, either in Emacs or by the OS?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 15:12:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 10 11:12:12 2024
Received: from localhost ([127.0.0.1]:40721 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGggu-0003aV-E5
	for submit <at> debbugs.gnu.org; Mon, 10 Jun 2024 11:12:12 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47768)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sGggs-0003Zs-VC
 for 71454 <at> debbugs.gnu.org; Mon, 10 Jun 2024 11:12:11 -0400
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 <eliz@HIDDEN>)
 id 1sGegZ-0005Dh-Ih; Mon, 10 Jun 2024 09:03:44 -0400
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=ILAboJzMvTvpa9jFvRovgTm1f8GkBJbt7dEygtBZjRE=; b=flPP4aw+ZJZdYjyJghs/
 SSsAbAaKXsbTUZMRcBl1GXVjEFewee5CRIxlYOtwOPYCjceJg0NP9EMhA7klZe7hMHcwLViYXrQMY
 nnIgJFu44M6y7EfRukYrVLElF5G6sIxQON2Uhku+k1XLhiOOPDBQRgphP55qisq2PaeRLBfVYtPTd
 c8U2gY44dHKmrK1Nst1J+85oSqvT4a5bExOrOk0mtHj/Rk6hFmHDDdN3Hd0uqKOI0jbBzD0URbUnd
 fv9pev2ZVoV7PSD8SaLU4KpFnKiJsR963DBuN5I8AbMEbdsUCDHpUIWrENag3KAVFmbuvu8DzDxep
 tY8f4uL00SzDEA==;
Date: Mon, 10 Jun 2024 16:03:41 +0300
Message-Id: <86r0d57xw2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <B7AE53E3-194C-4E87-AC9D-9707740973A1@HIDDEN> (message from
 Kai Ma on Mon, 10 Jun 2024 14:34:42 +0200)
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <864ja19fhy.fsf@HIDDEN> <B7AE53E3-194C-4E87-AC9D-9707740973A1@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71454
Cc: 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Kai Ma <justksqsf@HIDDEN>
> Date: Mon, 10 Jun 2024 14:34:42 +0200
> Cc: 71454 <at> debbugs.gnu.org
> 
> I currently use the following config:
> 
> (set-fontset-font t 'han "PingFang TC")
> (set-fontset-font t 'kana "PingFang TC")
> (set-fontset-font t 'kanbun "PingFang TC")
> (set-fontset-font t 'hangul "PingFang TC")
> (set-fontset-font t 'cjk-misc "PingFang TC")
> (set-fontset-font t 'unicode "PingFang TC" nil 'append)
> (set-fontset-font t 'unicode (font-spec :family "Apple Color Emoji") nil 'prepend)
> (dolist (thfont '("TH-Feon" "TH-Sy-P0" "TH-Sy-P2" "TH-Sy-P16" "TH-Tshyn-P0"))
>   (set-fontset-font t 'unicode thfont nil 'append))
> 
> PingFang TC and Apple Color Emoji are built into macOS, and TH-* fonts are from the Internet to cover a
> majority of the Unicode code points.
> 
> For example, 〡〢〣〤〥〦〨〩〸〹〺 belongs to cjk-misc script, and I have to specify a font for it to avoid
> delays.

FWIW, I get instantaneous display when I copy/paste that text into an
"emacs -Q" I just started, even though I have no fonts for the last 3
characters (which means Emacs searches all the fonts installed on the
system).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 15:12:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 10 11:12:12 2024
Received: from localhost ([127.0.0.1]:40717 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGggt-0003aN-Uz
	for submit <at> debbugs.gnu.org; Mon, 10 Jun 2024 11:12:12 -0400
Received: from eggs.gnu.org ([209.51.188.92]:47768)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sGggr-0003Zs-Gw
 for 71454 <at> debbugs.gnu.org; Mon, 10 Jun 2024 11:12:10 -0400
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 <eliz@HIDDEN>)
 id 1sGdl7-0001lZ-TI; Mon, 10 Jun 2024 08:04:21 -0400
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=7Tf34DzJAws3Tscz5G5dIojoTWwbzb+ztS4Ds4TRLf8=; b=JfOnV5TUtxOnE+IAUnno
 lpHC7npJbH7te4ij3wreenUnGLXrhPING9EHQL+2dv22RKmN3tM3UIj7TTQJa4nZYulL66hNYF5om
 EwMYrb6OxwKOJIc/F/WBowQ27hx8NhBbeTgP3tZhC3OBq2xSH8YqGMZg3PC7D6su9oZxu1wazn48Q
 fHUoC6/piOxiVl2vwtIwaQNxkmj11SsJE2uX+VWPhA2Iar0bE3JtIdOLhb0+AWz/yxy6TU9ZiFjWi
 E0VdfUZ4HyUd8HTk8BSbe0SehJDjxyx6T5iE3KpAip5CQdaHj56eOa6JdjT11hfI0lVyjD014QEcZ
 ZpLvul1macwOXA==;
Date: Mon, 10 Jun 2024 15:04:18 +0300
Message-Id: <8634pl9f7h.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <2AF3BA0C-B04D-45C9-8C83-4AF97BF20156@HIDDEN> (message from
 Kai Ma on Mon, 10 Jun 2024 04:14:40 +0200)
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
 <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN>
 <87r0d568ze.fsf@HIDDEN>
 <2AF3BA0C-B04D-45C9-8C83-4AF97BF20156@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71454
Cc: jb@HIDDEN, 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 71454 <at> debbugs.gnu.org
> From: Kai Ma <justksqsf@HIDDEN>
> Date: Mon, 10 Jun 2024 04:14:40 +0200
> 
> 
> 
> > On Jun 10, 2024, at 00:34, Jeremy Bryant <jb@HIDDEN> wrote:
> > 
> > Kai Ma <justksqsf@HIDDEN> writes:
> > 
> >>> On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> wrote:
> >>> 
> >>> Would you be able to provide a self-contained series of steps starting
> >>> from emacs -Q?
> >> 
> >> On my machine it is extremely easy to reproduce by simply:
> >> 
> >> 1. emacs -Q
> >> 2. Switch to *scratch*
> >> 3. Copy the provided text into *scratch*
> >> 4. Emacs will freeze for 17 seconds or so, and it cannot be interrupted by C-g
> > 
> > I am unable to reproduce this bug.
> > 
> > Please could you specify exactly which version of Emacs you are using?
> 
> I’m using Emacs master branch (commit 7f8ded2a85d) on macOS.

Maybe this is specific to the macOS font back-end, which AFAIU is a
special one used only on macOS.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 13:10:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 10 09:10:38 2024
Received: from localhost ([127.0.0.1]:32908 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGenF-0005oe-Tp
	for submit <at> debbugs.gnu.org; Mon, 10 Jun 2024 09:10:38 -0400
Received: from mail-ej1-f68.google.com ([209.85.218.68]:58726)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <justksqsf@HIDDEN>) id 1sGeH6-0004KE-6O
 for 71454 <at> debbugs.gnu.org; Mon, 10 Jun 2024 08:37:24 -0400
Received: by mail-ej1-f68.google.com with SMTP id
 a640c23a62f3a-a6f253a06caso66465766b.1
 for <71454 <at> debbugs.gnu.org>; Mon, 10 Jun 2024 05:37:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718022961; x=1718627761; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=+W632Govm0o80G78CPwXf/i/aXBDjEB3MsS9xO070+o=;
 b=dU2dnig9kVXo3zf+Rnsr9Y9TZkn+XWMUQuVSqKVRt5LehykjNbJ4ScZy0ne3OzlWDD
 wbciKuOJ0p3Sq75HzXzqouFlfUWhoHwwFpHaTNwmvVonGd2nPXMKy2eUNmhkO9x5Vf3t
 Xf3QYjEUx4AcmMeztLqE//FPVAvafOXW5mJP3hwiWDSiY4hu8BZuv8ihlCpF1Hgc5VHr
 e/oekwrf9KA6uj+V/xgnQ3h1QNd1vFiG4u7ibV7WIDnhc66g+0grUHXutrxY4olDL/+5
 +Pt2CQbNc0iIwbdQVc4PCzNTzTArOqCixJIvOC9TicRGMpVBllSe+5miEUX3n+Utzm1K
 XV7w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718022961; x=1718627761;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=+W632Govm0o80G78CPwXf/i/aXBDjEB3MsS9xO070+o=;
 b=lWQmL8VezbGVwvg76wU2ByybvpR3SAG2t8x6hmEJDo1jwet6fnqY+Jwcovb6sLmi7u
 B0j00m4BDeqqLeAI45kAfIc9KeF73PaHw16W45FbzVQOymfH4MxcKQul9nO40ENy/aGf
 KqjVyunIExYnRVFu3+D4nbyXgKDeMM8xRwOs0IX9v1l73ik/BhQaSxwShWO+WNvmf8wa
 Jnsnh7GTBSLNT0F+D+UJT9zehUJPktlcYeDKoxTokLf0ljjVPUgvgIa1e1Jq7SWvWcrC
 9UxOhb6quTUty2yVvjjNiUzoizTGjyEIgNXwelG/2vU5JsUsJX1N/Im1se0CmCfPyk6O
 0/lQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWsCn/x6z+X0OzCnVTXptL1qPYQi+SSf/N6M2OhbNLpBkVmVpBeNKy6oqoL11MaK3Vn7k6L8I0Tpz7yXKqwMCwBQUMvicg=
X-Gm-Message-State: AOJu0YxnTEY4I5oUHLFTNUVi/zgeX1hP1NlunQ0BixpwMgYMnyFtiXiZ
 fhtBjRA0f7C02rzDp2H15PZHKzFPXbhJtXv2mdUV07ZbVJN5OfkL
X-Google-Smtp-Source: AGHT+IEAj23DXTZz6lXytqHHE2U95G/tZxU+PbKIAs4QOEi76vZVOWmNjxXZSNhC+epSDICQF8koPw==
X-Received: by 2002:a17:907:80a:b0:a59:c0a6:25cd with SMTP id
 a640c23a62f3a-a6cd560f962mr1009236666b.5.1718022961191; 
 Mon, 10 Jun 2024 05:36:01 -0700 (PDT)
Received: from smtpclient.apple ([2a02:2454:c02f:2500:548a:4575:d560:48ed])
 by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-57c72efe054sm3588597a12.66.2024.06.10.05.36.00
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 10 Jun 2024 05:36:00 -0700 (PDT)
Content-Type: text/plain;
	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
From: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <865xuh9fmt.fsf@HIDDEN>
Date: Mon, 10 Jun 2024 14:35:50 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <4F59591A-23F6-4DB2-A350-52ED24408F39@HIDDEN>
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
 <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN> <865xuh9fmt.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3774.500.171.1.1)
X-Spam-Score: 1.8 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  > On Jun 10, 2024, at 13:55, Eli Zaretskii wrote: > >> Cc:
 71454 <at> debbugs.gnu.org >> From: Kai Ma >> Date: Mon, 10 Jun 2024 00:17:55
 +0200 >> >> >>> On Jun 10, 2024, at 00:10, Jeremy Bryant wrote [...] 
 Content analysis details:   (1.8 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 1.3 RCVD_IN_VALIDITY_RPBL  RBL: Relay in Validity RPBL,
 https://senderscore.org/blocklistlookup/
 [209.85.218.68 listed in bl.score.senderscore.com]
 0.5 FROM_LOCAL_NOVOWEL     From: localpart has series of non-vowel
 letters
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (justksqsf[at]gmail.com)
 0.0 RCVD_IN_MSPIKE_H3      RBL: Good reputation (+3)
 [209.85.218.68 listed in wl.mailspike.net]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [209.85.218.68 listed in list.dnswl.org]
 -0.0 T_SCC_BODY_TEXT_LINE   No description available.
 0.0 RCVD_IN_MSPIKE_WL      Mailspike good senders
X-Debbugs-Envelope-To: 71454
Cc: Jeremy Bryant <jb@HIDDEN>, 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.8 (/)



> On Jun 10, 2024, at 13:55, Eli Zaretskii <eliz@HIDDEN> wrote:
>=20
>> Cc: 71454 <at> debbugs.gnu.org
>> From: Kai Ma <justksqsf@HIDDEN>
>> Date: Mon, 10 Jun 2024 00:17:55 +0200
>>=20
>>=20
>>> On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> =
wrote:
>>>=20
>>> Would you be able to provide a self-contained series of steps =
starting
>>> from emacs -Q?
>>=20
>> On my machine it is extremely easy to reproduce by simply:
>>=20
>> 1. emacs -Q
>> 2. Switch to *scratch*
>> 3. Copy the provided text into *scratch*
>> 4. Emacs will freeze for 17 seconds or so, and it cannot be =
interrupted by C-g
>=20
> I cannot reproduce this, I get an almost instantaneous redisplay with
> those characters.
>=20
> When your Emacs eventually displays the text, how many characters are
> shown as boxes with hex code, and which ones are those?

None are hex code here. They eventually get displayed, but it takes a =
long time.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 12:36:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 10 08:36:21 2024
Received: from localhost ([127.0.0.1]:59470 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGeG4-0004HQ-VD
	for submit <at> debbugs.gnu.org; Mon, 10 Jun 2024 08:36:21 -0400
Received: from mail-ej1-f67.google.com ([209.85.218.67]:59607)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <justksqsf@HIDDEN>) id 1sGeG2-0004Gz-2u
 for 71454 <at> debbugs.gnu.org; Mon, 10 Jun 2024 08:36:19 -0400
Received: by mail-ej1-f67.google.com with SMTP id
 a640c23a62f3a-a6f04afcce1so209466366b.2
 for <71454 <at> debbugs.gnu.org>; Mon, 10 Jun 2024 05:36:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718022894; x=1718627694; darn=debbugs.gnu.org;
 h=references:to:cc:in-reply-to:date:subject:mime-version:message-id
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=uY8c+kJcX6rJ61XWoqQid7WcPW2tWsVjC8ed30CfbYA=;
 b=cT7BHrCImX9qmxcpLd/kPabVEanDMcKyzzPPoFTDD/laY6bcSDItm2HKpjGr96ri/y
 SKt8hHMU7VUmmqVrayct/0+fkNSbEvCKivNPC2BF2KzVXEgcNdz1cfiT0AY/LPTsrBB6
 UY9S9g29Os2gLvtUxEqIECg/00Jum7qUsEga2c5wOwoY7DtgYUSX3+iEb52XtOJ36zC7
 qXUM198Cc9heDOCNtObWKIYWr1pJpTk1g9ks1eTFfPsh05QllDskD5w4al/g5phYdOnp
 exzwVYWeqaKUOXx7PVkV3dTroMScYvqpuLmcBunXFFC1UFAOr2IUR+aTv6Ra5Zv4GE+s
 /A6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718022894; x=1718627694;
 h=references:to:cc:in-reply-to:date:subject:mime-version:message-id
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=uY8c+kJcX6rJ61XWoqQid7WcPW2tWsVjC8ed30CfbYA=;
 b=ulJvGJN/oX+Y+B/MH4yyFjsCtDHnayS5mBOd30mt8W9e6/fQOBiFsR1cGx570usv5a
 m+jWvsOhbuXn8m4I7k/tZLkH3RLLSKP5FJt70+W+V9a9WTY1p7REJUzgDu+axhimwvM3
 nmHIQdQBEhhS0AJpYCZAFnnrFLXprRVcqI2umq7BesnPFLI7K6WIUnhxMUZrLZTLtMdV
 5GEbUqzw1dt+s5bQTx+EGrM43ElEjuIDsNkhdvhPY1flgCkOjVfSgnObbU1ri5nReqCm
 /sbtkEaX9udS/SADtNsO7UCxNh5EABCn6wVeSRBfFJZFS7kLtGMsMpD4I5f0lyTLBfKd
 TYVA==
X-Gm-Message-State: AOJu0YxswT7Ntp7B0gqMQ4v0oeJng43h3tvUkFK3Sst6LZJiSSbCJeEU
 V0jWVkyQWHDKerBNJP4r7l8fDa8k+ap1SwNf3PrsEQRdfj2tD2QL
X-Google-Smtp-Source: AGHT+IEUVzWC8O1nDbH6YoEnN1dgRHenOirmR3HHfLwEYXZ/8V/DOhb/MaRVL7mdP/4S7DJq3q8jmg==
X-Received: by 2002:a17:906:c7d8:b0:a6f:2d9a:c956 with SMTP id
 a640c23a62f3a-a6f2d9acbf2mr66683466b.3.1718022893810; 
 Mon, 10 Jun 2024 05:34:53 -0700 (PDT)
Received: from smtpclient.apple ([2a02:2454:c02f:2500:548a:4575:d560:48ed])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-a6f2f80d5dfsm21347866b.115.2024.06.10.05.34.53
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Mon, 10 Jun 2024 05:34:53 -0700 (PDT)
From: Kai Ma <justksqsf@HIDDEN>
Message-Id: <B7AE53E3-194C-4E87-AC9D-9707740973A1@HIDDEN>
Content-Type: multipart/alternative;
 boundary="Apple-Mail=_9CBA96E5-C9CE-4A82-9857-D001026F06EB"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
Date: Mon, 10 Jun 2024 14:34:42 +0200
In-Reply-To: <864ja19fhy.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <864ja19fhy.fsf@HIDDEN>
X-Mailer: Apple Mail (2.3774.500.171.1.1)
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 71454
Cc: 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)


--Apple-Mail=_9CBA96E5-C9CE-4A82-9857-D001026F06EB
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On Jun 10, 2024, at 13:58, Eli Zaretskii <eliz@HIDDEN> wrote:
>=20
>> From: Kai Ma <justksqsf@HIDDEN>
>> Date: Sun, 9 Jun 2024 20:56:47 +0200
>>=20
>> I have currently (length (font-family-list)) =3D 582 font families
>> installed. And whenever I input some ununsual characters, Emacs will
>> freeze for seconds until I am able to do anything else.  Worse, the
>> freeze delay for each character will add up.  And whenver the face
>> changes (including hl-line-mode), or I switched to another buffer for
>> some time, there will be a delay again.
>=20
> FTR, I have 553 font families, and I see no significant delay when
> pasting the characters you show.
>=20
>> I'm pretty sure this is due to font selection, because Emacs won't
>> freeze if I configure manually the fallback fonts for each 'exotic'
>> script I encounter.
>=20
> If this is the case, please tell the details: which fonts you need to
> configure manually to eliminate the delay.


I currently use the following config:

(set-fontset-font t 'han "PingFang TC")
(set-fontset-font t 'kana "PingFang TC")
(set-fontset-font t 'kanbun "PingFang TC")
(set-fontset-font t 'hangul "PingFang TC")
(set-fontset-font t 'cjk-misc "PingFang TC")
(set-fontset-font t 'unicode "PingFang TC" nil 'append)
(set-fontset-font t 'unicode (font-spec :family "Apple Color Emoji") nil =
'prepend)
(dolist (thfont '("TH-Feon" "TH-Sy-P0" "TH-Sy-P2" "TH-Sy-P16" =
"TH-Tshyn-P0"))
  (set-fontset-font t 'unicode thfont nil 'append))

PingFang TC and Apple Color Emoji are built into macOS, and TH-* fonts =
are from the Internet to cover a majority of the Unicode code points.

For example, =E3=80=A1=E3=80=A2=E3=80=A3=E3=80=A4=E3=80=A5=E3=80=A6=E3=80=A8=
=E3=80=A9=E3=80=B8=E3=80=B9=E3=80=BA belongs to cjk-misc script, and I =
have to specify a font for it to avoid delays.


--Apple-Mail=_9CBA96E5-C9CE-4A82-9857-D001026F06EB
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On Jun 10, 2024, at 13:58, Eli Zaretskii =
&lt;eliz@HIDDEN&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><div><blockquote =
type=3D"cite">From: Kai Ma &lt;justksqsf@HIDDEN&gt;<br>Date: Sun, 9 =
Jun 2024 20:56:47 +0200<br><br>I have currently (length =
(font-family-list)) =3D 582 font families<br>installed. And whenever I =
input some ununsual characters, Emacs will<br>freeze for seconds until I =
am able to do anything else. &nbsp;Worse, the<br>freeze delay for each =
character will add up. &nbsp;And whenver the face<br>changes (including =
hl-line-mode), or I switched to another buffer for<br>some time, there =
will be a delay again.<br></blockquote><br>FTR, I have 553 font =
families, and I see no significant delay when<br>pasting the characters =
you show.<br><br><blockquote type=3D"cite">I'm pretty sure this is due =
to font selection, because Emacs won't<br>freeze if I configure manually =
the fallback fonts for each 'exotic'<br>script I =
encounter.<br></blockquote><br>If this is the case, please tell the =
details: which fonts you need to<br>configure manually to eliminate the =
delay.<br></div></div></blockquote></div><div><br></div><div>I currently =
use the following config:</div><br><div><div>(set-fontset-font t 'han =
"PingFang TC")</div><div>(set-fontset-font t 'kana "PingFang =
TC")</div><div>(set-fontset-font t 'kanbun "PingFang =
TC")</div><div>(set-fontset-font t 'hangul "PingFang =
TC")</div><div>(set-fontset-font t 'cjk-misc "PingFang =
TC")</div><div>(set-fontset-font t 'unicode "PingFang TC" nil =
'append)</div><div>(set-fontset-font t 'unicode (font-spec :family =
"Apple Color Emoji") nil 'prepend)</div><div>(dolist (thfont '("TH-Feon" =
"TH-Sy-P0" "TH-Sy-P2" "TH-Sy-P16" "TH-Tshyn-P0"))</div><div>&nbsp; =
(set-fontset-font t 'unicode thfont nil =
'append))</div></div><div><br></div><div>PingFang TC and Apple Color =
Emoji are built into macOS, and TH-* fonts are from the Internet to =
cover a majority of the Unicode code =
points.</div><div><br></div><div>For example,&nbsp;<span =
style=3D"font-family: Menlo-Regular;">=E3=80=A1=E3=80=A2=E3=80=A3=E3=80=A4=
=E3=80=A5=E3=80=A6=E3=80=A8=E3=80=A9=E3=80=B8=E3=80=B9=E3=80=BA belongs =
to cjk-misc script, and I have to specify a font for it to avoid =
delays.</span></div><div><br></div></body></html>=

--Apple-Mail=_9CBA96E5-C9CE-4A82-9857-D001026F06EB--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 12:10:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 10 08:10:39 2024
Received: from localhost ([127.0.0.1]:58111 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGdrC-00032N-N6
	for submit <at> debbugs.gnu.org; Mon, 10 Jun 2024 08:10:39 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42050)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sGdfO-00084R-QA
 for 71454 <at> debbugs.gnu.org; Mon, 10 Jun 2024 07:58:27 -0400
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 <eliz@HIDDEN>)
 id 1sGdf2-0000FY-7M; Mon, 10 Jun 2024 07:58:04 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=TPYmNwTRcJLLbdojTtLmqRTFQAVgGHMWA6jvKFqQ+0g=; b=btURYVEKpugC
 wQ9qce3P98lYSnBY5H359zATiowPU8kep61PaWCW9Ma+NVbMuLV/HPTPallqxzskCq7UQ/brCR4zL
 b8uTvn5r5OiEu/DD8bgMLQ/c3p/zePHNe9AXQ5xiPx1FSXTKIjPe56SNCgXOVlLlGQaOuKhfeIBN8
 gCR1mtjO7BAOJi1Sm7uNbxseQmM1k4Rwd7RbRBKUnKB2fKXB9hEl2jQioCTGWgckDmn8rhamZCYrj
 o4rkN8oygXRFy8ZvlYUksiVCZ0nGBYe1u3wDpbtVm4dCbU+wF29OVaiQW6y4wM8B0oGEWh680IZ+s
 O50wu5wxrL0gTzKOQX+dQg==;
Date: Mon, 10 Jun 2024 14:58:01 +0300
Message-Id: <864ja19fhy.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN> (message from
 Kai Ma on Sun, 9 Jun 2024 20:56:47 +0200)
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71454
Cc: 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Kai Ma <justksqsf@HIDDEN>
> Date: Sun, 9 Jun 2024 20:56:47 +0200
> 
> I have currently (length (font-family-list)) = 582 font families
> installed. And whenever I input some ununsual characters, Emacs will
> freeze for seconds until I am able to do anything else.  Worse, the
> freeze delay for each character will add up.  And whenver the face
> changes (including hl-line-mode), or I switched to another buffer for
> some time, there will be a delay again.

FTR, I have 553 font families, and I see no significant delay when
pasting the characters you show.

> I'm pretty sure this is due to font selection, because Emacs won't
> freeze if I configure manually the fallback fonts for each 'exotic'
> script I encounter.

If this is the case, please tell the details: which fonts you need to
configure manually to eliminate the delay.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.
Severity set to 'wishlist' from 'normal' Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 11:58:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 10 07:58:30 2024
Received: from localhost ([127.0.0.1]:57392 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGdfR-000856-OM
	for submit <at> debbugs.gnu.org; Mon, 10 Jun 2024 07:58:30 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42050)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1sGdfQ-00084R-66; Mon, 10 Jun 2024 07:58:28 -0400
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 <eliz@HIDDEN>)
 id 1sGdal-0007mk-5b; Mon, 10 Jun 2024 07:53:39 -0400
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=Z/yiZ3K0bc+FDCRR6iHb4MqKID+8oR1J1UUeVx9Hnx4=; b=liK2Gplensr0KLoCLz71
 XEz45hKIyKsKbUdAsigrfH8oanwpQGXnVgX+0s4L2eKjht+FN8SEsG/xDyogO0viHbclT0k0foyKL
 FzDX27e+OEg+pra/Wu5+mGP1J6h0tlAyOOw6IoAW4F+qWMG9fbClY6ZvTuSCa1+0sr/sHO0+//AwI
 27zIZ+uhxj/ZrEwK1iUYBqhFAUDLKv3RSnjhG/rjGhHsYhDnunXTFcnXGOUMZHtTzz7r1FxEaW26G
 w5tTodqj5TO8I3nMLy63LsbGsW/Xzo762CqWz8aA3b+CX1ebYLzO8Vt9DF6EpkIjk9JS6PkvteyyB
 ii9hvhrNnM6gTw==;
Date: Mon, 10 Jun 2024 14:53:36 +0300
Message-Id: <867cex9fpb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <F814273E-4A20-46BC-88C9-37538C4DFAB9@HIDDEN> (message from
 Kai Ma on Mon, 10 Jun 2024 04:18:08 +0200)
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
 <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN>
 <f4756916-dfe8-2c21-95f6-f3f2ee516d42@HIDDEN>
 <F814273E-4A20-46BC-88C9-37538C4DFAB9@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71454
Cc: jporterbugs@HIDDEN, jb@HIDDEN, 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

severity 71454 wishlist
thanks

> Cc: Jeremy Bryant <jb@HIDDEN>, 71454 <at> debbugs.gnu.org
> From: Kai Ma <justksqsf@HIDDEN>
> Date: Mon, 10 Jun 2024 04:18:08 +0200
> 
> > On Jun 10, 2024, at 01:10, Jim Porter <jporterbugs@HIDDEN> wrote:
> > 
> > On 6/9/2024 3:17 PM, Kai Ma wrote:
> >>> On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> wrote:
> >>> 
> >>> Would you be able to provide a self-contained series of steps starting
> >>> from emacs -Q?
> >> On my machine it is extremely easy to reproduce by simply:
> >> 1. emacs -Q
> >> 2. Switch to *scratch*
> >> 3. Copy the provided text into *scratch*
> >> 4. Emacs will freeze for 17 seconds or so, and it cannot be interrupted by C-g
> > 
> > Is this on MS-Windows, by chance? Using a different set of steps, I can reproduce this issue on MS-Windows (Emacs 29.3), but not on GNU/Linux. Here's what I did:
> > 
> >  emacs -Q
> >  C-h v comint-password-prompt-regexp RET
> 
> 
> I’m using macOS. I apologize for not adding this info to my original report.
> 
> And yes, I can also reproduce the issue with C-h v comint-password-prompt-regexp RET

AFAICT, the problematic part of comint-password-prompt-regexp is this:

  गुप्तशब्द\\|शब्दकूट\\|গুপ্তশব্দ\\|পাসওয়ার্ড\\|ਪਾਸਵਰਡ\\|પાસવર્ડ\\|ପ୍ରବେଶ ସଙ୍କେତ\\|கடவுச்சொல்\\|సంకేతపదము\\|ಗುಪ್ತಪದ\\|അടയാളവാക്ക്\\|රහස්පදය

This has nothing to do with the number of fonts installed on the
system, nor with how Emacs searches for fonts, nor even with the fonts
themselves.  On my system, all of the characters above are displayed
using the same single font.  And yet, even if I insert just a single
character of those, which causes Emacs to find and load that font,
pasting the rest of the string takes several seconds in an unoptimized
build (I expect it to take about 2 sec or less in an optimized build).

Note that if you then paste the same string over and over again, the
display is instantaneous.

My crystal ball says that the expensive part here is character
composition.  The above characters belong to scripts that require
extensive composition rules, take a look at indian.el and its complex
regexps.  Displaying those characters requires the display code to
examine all those regexps, to find the largest composable sequence,
then generate the compositions by calling into Lisp, which then calls
back into C where we call HarfBuzz to produce the font glyphs for the
compositions.  This is expensive, and so Emacs caches each composition
for further use, which explains why subsequent pastes are much faster.

IOW, this is a price we pay for the fact that we make character
compositions infinitely customizable on the Lisp level.

So far, I see no bug here.  Of course, if someone wants to work on
redesign of how Emacs handles character composition, and as part of
such a redesign will make the process much faster, that would be very
welcome.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 11:58:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 10 07:58:29 2024
Received: from localhost ([127.0.0.1]:57390 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGdfR-000854-C7
	for submit <at> debbugs.gnu.org; Mon, 10 Jun 2024 07:58:29 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42050)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sGdfP-00084R-DF
 for 71454 <at> debbugs.gnu.org; Mon, 10 Jun 2024 07:58:27 -0400
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 <eliz@HIDDEN>)
 id 1sGdcC-00088U-0z; Mon, 10 Jun 2024 07:55:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=gbRsGWdP2AGN+cZKoTvdod1vIUN5Jk6/7PJlCJNeCEo=; b=FAR52q0dEvCT
 zZXEPbFicKfPcdck9JUTxLDU5jl615YuaodAOC3aPzmzkM0Srv8MZKZaGBGZtfC6R/TuCE9YYqbn0
 xXZt4sj1gjXvvzMljNSFKKLKhjgTjLxPsN3KI+xR71As4lNfrd1dgeU8x2yJe9GcuMsS/MbYHkyaf
 IgyIh90qeAKUXrv4iM+jai+E+FGz8+JeL05Zm7WQYIUlir5f/5g1YlSHbx24Qrm2fddAPmu5a2QdA
 AHbOW9LthDdvqt7xZkJFiEgb9nXXjq+epNMY3RCiw2RSv1HP++eAEhQoWzt3Wtrj4hbIaP4mnjt6y
 6TNWYS9UC4VxIisuZZy9fg==;
Date: Mon, 10 Jun 2024 14:55:06 +0300
Message-Id: <865xuh9fmt.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN> (message from
 Kai Ma on Mon, 10 Jun 2024 00:17:55 +0200)
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
 <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71454
Cc: jb@HIDDEN, 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 71454 <at> debbugs.gnu.org
> From: Kai Ma <justksqsf@HIDDEN>
> Date: Mon, 10 Jun 2024 00:17:55 +0200
> 
> 
> > On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> wrote:
> > 
> > Would you be able to provide a self-contained series of steps starting
> > from emacs -Q?
> 
> On my machine it is extremely easy to reproduce by simply:
> 
> 1. emacs -Q
> 2. Switch to *scratch*
> 3. Copy the provided text into *scratch*
> 4. Emacs will freeze for 17 seconds or so, and it cannot be interrupted by C-g

I cannot reproduce this, I get an almost instantaneous redisplay with
those characters.

When your Emacs eventually displays the text, how many characters are
shown as boxes with hex code, and which ones are those?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 02:40:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 22:40:28 2024
Received: from localhost ([127.0.0.1]:50387 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGUxP-00009W-Lf
	for submit <at> debbugs.gnu.org; Sun, 09 Jun 2024 22:40:28 -0400
Received: from mail-ed1-f67.google.com ([209.85.208.67]:61776)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <justksqsf@HIDDEN>) id 1sGUjI-0007uB-SV
 for 71454 <at> debbugs.gnu.org; Sun, 09 Jun 2024 22:25:53 -0400
Received: by mail-ed1-f67.google.com with SMTP id
 4fb4d7f45d1cf-57c6011d75dso2351681a12.3
 for <71454 <at> debbugs.gnu.org>; Sun, 09 Jun 2024 19:25:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1717986270; x=1718591070; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=FwdbNoR79iaMyhMaXRtLBw4t1xtbbizSsc5k8Q/SsCg=;
 b=FqELptzXpHCId8Fw/tq2k/sLwRjfU3ID+lJ6HVH90MBAWksZczRUwzVu+oNnNnlSRS
 w+iWYjSepp7WkfAdSBP2gZg8UksE7Zj7euSbcMreDkp8+cS8SqdfH6awFAJY/L7TBDmj
 29IIRfIUZx9rUyVDL8yx/uJg58N+woOWPoc0YPJHjvMVjdCxux44whMEnG32bBavDZAj
 woPN3x7xIg4/jp+j4HVkj8908lsCLqdRB5PIHMC0p63MpKYm8D7fhpsnreUNwOmQy6zK
 81c4BGlbR6yyC0gYjGct6oHoGpkpIYQOf5b1zNWBg5Fw2YHG6qIqojjiOLBFHSkapjkr
 Pjjw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717986270; x=1718591070;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=FwdbNoR79iaMyhMaXRtLBw4t1xtbbizSsc5k8Q/SsCg=;
 b=vDCJSlskxnZH3pQXBx/49QUJehyGJ0qo5pZyDB/xqXKdJnUvMevwK8c4KmrUw56Va9
 u95zov0U+T0mZoa5/TkVxeBEQUk6WC7vbtl0G0TYQRkKWMvNNqv9bmizcLl/9FQ5G03g
 qZcV//XdolhP3nWuXlB1yiT8Wi2F+t/njh4/fKaC3Zf8/vN6iWX7awJHXbC5FgrgPPYB
 nq/1M+4SdXEPsKafmBuksX8sWVd67oXoKMdyNPbY7Cgz05+SJhKPu9hbAC0cpq6U9WX2
 JUeb668VaK4hxi3x65GtbfiQdr257zUwhtA7ffbkY6fN6+ojTv9RwyYDtdgHc4bPVFTf
 bKJw==
X-Forwarded-Encrypted: i=1;
 AJvYcCUMXGcf98auXdoloF7rlFpDmF0lfl8tzv+lLyx7a+ByIprffDawASFGYOIn71yrh/TqdJpHZEYKn3I2LXJHsbbLLiudFNs=
X-Gm-Message-State: AOJu0Ywpz4BDJx3eyJxhRtwbtp+V3u7S7MoCNeexT3iw7LcCsJZxjolL
 5WhLmsfe2cqMG6YNbust0NDNLjSUrIpi00ZY0w/+/RTOIq4mgpg3rBleJZMM1i0=
X-Google-Smtp-Source: AGHT+IG+stHbgoycfAEvEv5eWyJ1O4bSamJE5EJ9DY9qyeVDEJ98DsDOy4kesmTvLMzfLm8smLBVQQ==
X-Received: by 2002:a5d:6305:0:b0:35f:1c26:b68d with SMTP id
 ffacd0b85a97d-35f1c26b7d4mr2613851f8f.60.1717985900173; 
 Sun, 09 Jun 2024 19:18:20 -0700 (PDT)
Received: from smtpclient.apple ([2a02:2454:c02f:2500:548a:4575:d560:48ed])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-35f25907f15sm913951f8f.45.2024.06.09.19.18.19
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 09 Jun 2024 19:18:19 -0700 (PDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
From: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <f4756916-dfe8-2c21-95f6-f3f2ee516d42@HIDDEN>
Date: Mon, 10 Jun 2024 04:18:08 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <F814273E-4A20-46BC-88C9-37538C4DFAB9@HIDDEN>
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
 <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN>
 <f4756916-dfe8-2c21-95f6-f3f2ee516d42@HIDDEN>
To: Jim Porter <jporterbugs@HIDDEN>
X-Mailer: Apple Mail (2.3774.500.171.1.1)
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 71454
Cc: Jeremy Bryant <jb@HIDDEN>, 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)



> On Jun 10, 2024, at 01:10, Jim Porter <jporterbugs@HIDDEN> wrote:
>=20
> On 6/9/2024 3:17 PM, Kai Ma wrote:
>>> On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> =
wrote:
>>>=20
>>> Would you be able to provide a self-contained series of steps =
starting
>>> from emacs -Q?
>> On my machine it is extremely easy to reproduce by simply:
>> 1. emacs -Q
>> 2. Switch to *scratch*
>> 3. Copy the provided text into *scratch*
>> 4. Emacs will freeze for 17 seconds or so, and it cannot be =
interrupted by C-g
>=20
> Is this on MS-Windows, by chance? Using a different set of steps, I =
can reproduce this issue on MS-Windows (Emacs 29.3), but not on =
GNU/Linux. Here's what I did:
>=20
>  emacs -Q
>  C-h v comint-password-prompt-regexp RET


I=E2=80=99m using macOS. I apologize for not adding this info to my =
original report.

And yes, I can also reproduce the issue with C-h v =
comint-password-prompt-regexp RET=




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 02:24:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 22:24:22 2024
Received: from localhost ([127.0.0.1]:49295 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGUhp-0007pl-Vp
	for submit <at> debbugs.gnu.org; Sun, 09 Jun 2024 22:24:22 -0400
Received: from mail-wr1-f68.google.com ([209.85.221.68]:46443)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <justksqsf@HIDDEN>) id 1sGUhn-0007pQ-Kh
 for 71454 <at> debbugs.gnu.org; Sun, 09 Jun 2024 22:24:20 -0400
Received: by mail-wr1-f68.google.com with SMTP id
 ffacd0b85a97d-35f1c567ae4so866658f8f.1
 for <71454 <at> debbugs.gnu.org>; Sun, 09 Jun 2024 19:24:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1717986177; x=1718590977; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=gkhbRR14J7LJ/OX79m5HmhSvY/Lr4t0318z0RVL7mIQ=;
 b=My0rpLpAmh2qiKGwvq8/tAh9Y+cUBfxSt9TR+uI7YESKJt+CQIxB15T8JFAwzed8VB
 FH4KY/uUaxBnaqbqVPTkLZ5UnDCcyRr0jA/cr730q7fcEsewy+rtUGwjdTw5isVkjK7E
 4IRUdwwILWOXxBdJlu13H3jDwO2IaANoENgnX64h2fL/wTl/Xo0QuchPm84xpu596qcM
 +OQVnjAc8XVFHEqOR5iHPj8/2kP99Mj5HGRy8APImahqT5vn/NLSOHaLVycBoT24Rly0
 HcriZNUbdQoHV9X2W5w8+wkdi6Gc8uAMWMh/20NmavC8P3muGFXhUKI+j8uYzvJfNtm6
 ayXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717986177; x=1718590977;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=gkhbRR14J7LJ/OX79m5HmhSvY/Lr4t0318z0RVL7mIQ=;
 b=FZYtCcK1OHI5gPjh6qjQk3kfkfL81gmek2U857BjbDa1ztZCrTRHcyRK5NLODyNDMB
 QpvEJuslVzp/wsQUEAFIXV88eKj/99aWEl7BnLMT9oo0Xdz+dMEYsAVSQywmjNlcjNYs
 vR6ND0HFTrp9kPbLUF0PKh9qVG76gOLwoRRohupnYyNSRk0E9VsztdE8bSs3eitN63cI
 soVKHwYJy8OhMmfQMtIA8blX/eAw+WuP0ZQdDQpDNCawYSrd3RrA9fkLTIYAZTZ2Wf+O
 nqc+i1kBedRv5O1+92LhYmlyIfrjO8XDjEoYedR+3zm5Reb2S+2KxDWqB2xlzLf8DDcG
 qRmA==
X-Gm-Message-State: AOJu0YzzArmCPAoTI5nx8kwih37+9j7c5Oj0Oq1L23uTE3GPHFyQYUjt
 HxVvQz8JnZH/x7fMN6HDg9FKrOOxmQtyjkMiRXzZP/sJXa0wLZ2EtbamMAYxAwA=
X-Google-Smtp-Source: AGHT+IGQ6+WeMQVCd1HDS8pPPjIUg9tpqHNKSKmlXcLyesZNBaNfOLTqOmhwfRbQP4NTOS5AL+/eqA==
X-Received: by 2002:a05:600c:3d93:b0:421:ad42:c4c2 with SMTP id
 5b1f17b1804b1-421ad42c671mr14905775e9.10.1717985692002; 
 Sun, 09 Jun 2024 19:14:52 -0700 (PDT)
Received: from smtpclient.apple ([2a02:2454:c02f:2500:548a:4575:d560:48ed])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-4220ce52c32sm275735e9.48.2024.06.09.19.14.51
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 09 Jun 2024 19:14:51 -0700 (PDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
From: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <87r0d568ze.fsf@HIDDEN>
Date: Mon, 10 Jun 2024 04:14:40 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <2AF3BA0C-B04D-45C9-8C83-4AF97BF20156@HIDDEN>
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
 <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN>
 <87r0d568ze.fsf@HIDDEN>
To: Jeremy Bryant <jb@HIDDEN>
X-Mailer: Apple Mail (2.3774.500.171.1.1)
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 71454
Cc: 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)



> On Jun 10, 2024, at 00:34, Jeremy Bryant <jb@HIDDEN> wrote:
>=20
> Kai Ma <justksqsf@HIDDEN> writes:
>=20
>>> On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> =
wrote:
>>>=20
>>> Would you be able to provide a self-contained series of steps =
starting
>>> from emacs -Q?
>>=20
>> On my machine it is extremely easy to reproduce by simply:
>>=20
>> 1. emacs -Q
>> 2. Switch to *scratch*
>> 3. Copy the provided text into *scratch*
>> 4. Emacs will freeze for 17 seconds or so, and it cannot be =
interrupted by C-g
>=20
> I am unable to reproduce this bug.
>=20
> Please could you specify exactly which version of Emacs you are using?

I=E2=80=99m using Emacs master branch (commit 7f8ded2a85d) on macOS.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 9 Jun 2024 23:25:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 19:25:27 2024
Received: from localhost ([127.0.0.1]:39186 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGRuh-0004zZ-7J
	for submit <at> debbugs.gnu.org; Sun, 09 Jun 2024 19:25:27 -0400
Received: from mail-ot1-f54.google.com ([209.85.210.54]:45088)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1sGRhC-0004KS-Gl
 for 71454 <at> debbugs.gnu.org; Sun, 09 Jun 2024 19:11:31 -0400
Received: by mail-ot1-f54.google.com with SMTP id
 46e09a7af769-6f8d0a00a35so2569713a34.2
 for <71454 <at> debbugs.gnu.org>; Sun, 09 Jun 2024 16:11:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1717974608; x=1718579408; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:mime-version:date:message-id:from:to:cc
 :subject:date:message-id:reply-to;
 bh=XbfuMH8kviLIQvw/ZeUWOUrv9Y1Qxl5q0RUW6If5G8M=;
 b=cEsgyYlAef82kGECYUWFRe16w1KgAOfKz4D8nej++A5ojGpXl8yPZdVSRKVSDs/rG5
 2oUd1LU3nOBnX+z8oQlAeq45KjGkOA6/K1Ajg+ndDADCV3CJ3xYeUtiWA0ka5VXTQQ0+
 0EVX28BTTx/KbRn5H2DkykQ2FF62zVeio7I9xyGrYL+C98N585N+TNB2VRpD84Tg93Fj
 XmjJiotI+qF9VpkSS7qHNXnUYiZ2/1p77dIApBKwF3c5mSE85QWoK373z7PplL1pSurW
 NINn3/RecCMgI7I1V2maCiWFaosmw5L+ojICHE7v+hoRjvNnRi9CeFa6v2xDi5goqpbK
 Ny6Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717974608; x=1718579408;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=XbfuMH8kviLIQvw/ZeUWOUrv9Y1Qxl5q0RUW6If5G8M=;
 b=VlvIj6NUtkNr7YtEnz+yTynoKMcCby8EZBhN4zYpxbweMmhys1tdiXPmOofR0SzArO
 Ij0O5PZuos0lv8/HgzP8terZ5ZoIdJsX0n0GbRN2UgMpKaw4qvF6gMicNhW7Vdl1NHtX
 6A+dRFNxwchTV3RzS2slZEFG2IzSMKCoG4cvmdliD0GyGZYSbe49MPEyoB6qvfda9Xly
 VSzkJHMMCuiTsN/kiC+QqY9yqIFa89Spn+BNQd/niGVYVOwMal+6K3CoGvVZuEmUFqrZ
 bf3E6ZgOsUBv3lhati70RTQzhOfPuauM0O8mmWGqQARbeZgpZcjB2nm0ODRBlPfPDTMk
 acrw==
X-Gm-Message-State: AOJu0Ywr8YBs0H36GmmRkfxsdNtQ90FubB1JMqW8VxIx5IqoQIVnRgfN
 cOw70H0PIL6WHEej4tSlF7UD50NH+8U54dfRVhDrK516e1KQFECc
X-Google-Smtp-Source: AGHT+IGecnS6PonGepo5Ar2DDxeULxfWjvfQ5fTzrU5/gZqAyro1jW6L0m5EFDTFIQSaBWYizAw2ag==
X-Received: by 2002:a05:6358:914c:b0:19f:53c7:622b with SMTP id
 e5c5f4694b2df-19f53c76383mr102796555d.23.1717974607870; 
 Sun, 09 Jun 2024 16:10:07 -0700 (PDT)
Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com.
 [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id
 41be03b00d2f7-6ebac6bdf1asm1214441a12.64.2024.06.09.16.10.07
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Sun, 09 Jun 2024 16:10:07 -0700 (PDT)
Message-ID: <f4756916-dfe8-2c21-95f6-f3f2ee516d42@HIDDEN>
Date: Sun, 9 Jun 2024 16:10:07 -0700
MIME-Version: 1.0
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
Content-Language: en-US
To: Kai Ma <justksqsf@HIDDEN>, Jeremy Bryant <jb@HIDDEN>
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
 <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN>
From: Jim Porter <jporterbugs@HIDDEN>
In-Reply-To: <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71454
Cc: 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 6/9/2024 3:17 PM, Kai Ma wrote:
> 
>> On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> wrote:
>>
>> Would you be able to provide a self-contained series of steps starting
>> from emacs -Q?
> 
> On my machine it is extremely easy to reproduce by simply:
> 
> 1. emacs -Q
> 2. Switch to *scratch*
> 3. Copy the provided text into *scratch*
> 4. Emacs will freeze for 17 seconds or so, and it cannot be interrupted by C-g

Is this on MS-Windows, by chance? Using a different set of steps, I can 
reproduce this issue on MS-Windows (Emacs 29.3), but not on GNU/Linux. 
Here's what I did:

   emacs -Q
   C-h v comint-password-prompt-regexp RET




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 9 Jun 2024 22:35:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 18:35:45 2024
Received: from localhost ([127.0.0.1]:36699 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGR8b-0002ij-E2
	for submit <at> debbugs.gnu.org; Sun, 09 Jun 2024 18:35:45 -0400
Received: from out-178.mta1.migadu.com ([95.215.58.178]:36702)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jb@HIDDEN>) id 1sGR8Y-0002i3-Qf
 for 71454 <at> debbugs.gnu.org; Sun, 09 Jun 2024 18:35:43 -0400
X-Envelope-To: 71454 <at> debbugs.gnu.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net;
 s=key1; t=1717972488;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=6mGsoDoIkilyflijiJcKbar3JOLfmS+NvydVOLefm+U=;
 b=nQWSt8HnrbBrpuvMpcr3lLKO2Dcxfr965urptzdLTtbKadMfdTp+65x0zAyADK3vys/Suj
 1/VG93A3LCX7NSokvju1lC6VfJh/JEc7M4+Ila4zmSCFbzeb/LmMwOCJxc2Vu8dJJqHWad
 EU/X0lb+rNXz67fNvxdZEaD1kHcv1KxFkcorfAhmakVXXPwyeHY8XW3hN6Rps5bnU1T4kJ
 tq85Gayh6Zdx8b1KvpyFCz/sGCwojyWHY/Gd/xxmSYlh45chzl8lVXYAe34PVcNCI2yoAk
 eO0dUhTIPKzN7z2QU9I1+3kHFJlRSWLAiN0UmkSCbOTR0rHyvvBaH91l96Dr4w==
X-Envelope-To: justksqsf@HIDDEN
X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and
 include these headers.
From: Jeremy Bryant <jb@HIDDEN>
To: Kai Ma <justksqsf@HIDDEN>
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
In-Reply-To: <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN> (Kai Ma's
 message of "Mon, 10 Jun 2024 00:17:55 +0200")
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
 <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN>
Date: Sun, 09 Jun 2024 23:34:45 +0100
Message-ID: <87r0d568ze.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Migadu-Flow: FLOW_OUT
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71454
Cc: 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Kai Ma <justksqsf@HIDDEN> writes:

>> On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> wrote:
>> 
>> Would you be able to provide a self-contained series of steps starting
>> from emacs -Q?
>
> On my machine it is extremely easy to reproduce by simply:
>
> 1. emacs -Q
> 2. Switch to *scratch*
> 3. Copy the provided text into *scratch*
> 4. Emacs will freeze for 17 seconds or so, and it cannot be interrupted by C-g

I am unable to reproduce this bug.

Please could you specify exactly which version of Emacs you are using?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 9 Jun 2024 22:19:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 18:19:32 2024
Received: from localhost ([127.0.0.1]:35900 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGQsu-0001ys-GV
	for submit <at> debbugs.gnu.org; Sun, 09 Jun 2024 18:19:32 -0400
Received: from mail-wm1-f65.google.com ([209.85.128.65]:44232)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <justksqsf@HIDDEN>) id 1sGQsr-0001yS-Ny
 for 71454 <at> debbugs.gnu.org; Sun, 09 Jun 2024 18:19:30 -0400
Received: by mail-wm1-f65.google.com with SMTP id
 5b1f17b1804b1-42172ed3487so15818265e9.0
 for <71454 <at> debbugs.gnu.org>; Sun, 09 Jun 2024 15:19:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1717971487; x=1718576287; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=6DHI9v+Ew8sSLlX1883ZHjKWwqvtixvZnIsB8GSRCj0=;
 b=Ub6FTy4aRZwlSiYk1npqkn+okr5RmpXRKUDdUGM/DO1weE7V/paxydnnTuHqfrhjMX
 lO55esTZvXb4U4RuLg7Pg5yzp5aQpcSJ6qQ0E3kiqnXPxhSZ/IULvLrYuV1pOz+uF0F+
 xZpuUyyK5QL4FjufG0PsAGsh1ie1FAUWgcuO1lhMtPd35YImAZ+62zE3JxBurJHd0DUP
 Q+jMsQ21P6xakOUFEGe+B1mBiIK6qp2PEv6zTsZKoWL6mspn/yalP26oxWvBTSMwuEfm
 Vqfm5kZ0yFE+sn7hVFq9t2S3BRtfKHuwMUyF8jD/HalmnMDjT0f/ENY5aJG+WzSG740C
 msCQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717971487; x=1718576287;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=6DHI9v+Ew8sSLlX1883ZHjKWwqvtixvZnIsB8GSRCj0=;
 b=LoR7r8Y13AYDw4xUGDFqy5IIrp/SmSFJ0XEogjSFG6FjJm+Q9IH4lCoecS4ssoIFd6
 EYDU9bTxxM/QfcY8/Xe4oSdbDwkFCEvE5eK3HXm1Ul+RUsRYwqm/XU2OHLhHjajWHz8n
 lEy5C8+kcpHvjQv+amT61pxxfhJk0o5KaQtn6UjeYVCbtjG+HnNJK6RsCfBfDg3ioCYA
 CFoVYSUo5X3VaflQEaJckhG7iWyifZH8tNKLE9R1G6aMS8b5piwPUB2LJ7XCrwO+V1Sr
 6y2DzR8h76nGKwbxqCGDfNZ/Fxs/PQw9AcUYQ2Xho5pTxtB3p30GY4B3SfzamviTDVTN
 h0Lg==
X-Gm-Message-State: AOJu0Yx+KD+tFIDqZOYqCEu8eVmo1OYfY1R0E6geUXk6fWE72dx/+YxO
 Kg1ryB79/mi7e7zMIdOtQCkNx+rKA79NV+wt06Xfq3ouIQN6InspwU2P69ymXfI=
X-Google-Smtp-Source: AGHT+IFX2V95EFDFf6+uRE1pLx1WB9SyPuUy/+hMSUKFUDbVujg4EhjsyikOsqTrZrAxLUyyyR/Fyg==
X-Received: by 2002:a05:600c:4ece:b0:421:7be5:f318 with SMTP id
 5b1f17b1804b1-4217be5f510mr35269975e9.33.1717971487174; 
 Sun, 09 Jun 2024 15:18:07 -0700 (PDT)
Received: from smtpclient.apple ([2a02:2454:c02f:2500:548a:4575:d560:48ed])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-421e91c46e4sm6761865e9.9.2024.06.09.15.18.06
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 09 Jun 2024 15:18:06 -0700 (PDT)
Content-Type: text/plain;
	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
From: Kai Ma <justksqsf@HIDDEN>
In-Reply-To: <87v82h6a33.fsf@HIDDEN>
Date: Mon, 10 Jun 2024 00:17:55 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <ABE7BD02-131A-4F53-979B-4D8B46C96B89@HIDDEN>
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
 <87v82h6a33.fsf@HIDDEN>
To: Jeremy Bryant <jb@HIDDEN>
X-Mailer: Apple Mail (2.3774.500.171.1.1)
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 71454
Cc: 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.5 (/)


> On Jun 10, 2024, at 00:10, Jeremy Bryant <jb@HIDDEN> wrote:
>=20
> Would you be able to provide a self-contained series of steps starting
> from emacs -Q?

On my machine it is extremely easy to reproduce by simply:

1. emacs -Q
2. Switch to *scratch*
3. Copy the provided text into *scratch*
4. Emacs will freeze for 17 seconds or so, and it cannot be interrupted =
by C-g





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at 71454 <at> debbugs.gnu.org:


Received: (at 71454) by debbugs.gnu.org; 9 Jun 2024 22:11:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 18:11:54 2024
Received: from localhost ([127.0.0.1]:35631 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGQlV-0001eN-Ru
	for submit <at> debbugs.gnu.org; Sun, 09 Jun 2024 18:11:54 -0400
Received: from out-189.mta1.migadu.com ([95.215.58.189]:12120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jb@HIDDEN>) id 1sGQlT-0001e2-JT
 for 71454 <at> debbugs.gnu.org; Sun, 09 Jun 2024 18:11:52 -0400
X-Envelope-To: 71454 <at> debbugs.gnu.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeremybryant.net;
 s=key1; t=1717971058;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=lJY5u1EIVAGZZmGW10YUPbmivuCci6bmPh+E6scPs0g=;
 b=Y/b4IZNmKHdqoHN7o9uaMBLPG0dTSvwfW/teWnx944csrbLvB2tVPkh5PR9YFvoPRvQaNb
 T5YXL3ol7vSMwQ7wDJE8gSRU9xqKWxqtRSTMT8MSUqsR1/sz7QULgvDP4L1IOYrmzzC3X0
 l1iqvL1rmd1F6AN557PI4r1j2zrFaBxTiYZva8gc9YpARDwqhCbYcJc85TS5cNcPEKytG2
 0DpEQi8VukGW8P3REPkp0jSqpZkmDHtzOa0WbJqljTnxKBd8wEn8Jp2QnWidpyhr9Yfb+y
 QrOP3KeLMamhdOiR+WR5L4F8YLn5Zq2nxaqmyQHZtpfyK9rboi8PGgdHgahJfg==
X-Envelope-To: justksqsf@HIDDEN
X-Report-Abuse: Please report any abuse attempt to abuse@HIDDEN and
 include these headers.
From: Jeremy Bryant <jb@HIDDEN>
To: Kai Ma <justksqsf@HIDDEN>
Subject: Re: bug#71454: 30.0.50; Performance issues with font selection
In-Reply-To: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN> (Kai Ma's
 message of "Sun, 9 Jun 2024 20:56:47 +0200")
References: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
Date: Sun, 09 Jun 2024 23:10:56 +0100
Message-ID: <87v82h6a33.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: base64
X-Migadu-Flow: FLOW_OUT
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71454
Cc: 71454 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

S2FpIE1hIDxqdXN0a3Nxc2ZAZ21haWwuY29tPiB3cml0ZXM6DQoNCj4gUmVjZW50bHksIEkgaGF2
ZSB0aGUgbmVlZCBvZiBlZGl0aW5nIGZpbGVzIHdpdGggZXh0cmFvcmRpbmFyeSByYW5nZXMgb2YN
Cj4gVW5pY29kZSBjb2RlIHBvaW50cywgYW5kIHRoZSBwZXJmb3JtYW5jZSBwcm9ibGVtIHdpdGgg
Zm9udCBzZWxlY3Rpb24NCj4gYmVjb21lcyB0b28gb2J2aW91cyB0byBpZ25vcmUuDQo+DQo+IEkg
aGF2ZSBjdXJyZW50bHkgKGxlbmd0aCAoZm9udC1mYW1pbHktbGlzdCkpID0gNTgyIGZvbnQgZmFt
aWxpZXMNCj4gaW5zdGFsbGVkLiBBbmQgd2hlbmV2ZXIgSSBpbnB1dCBzb21lIHVudW5zdWFsIGNo
YXJhY3RlcnMsIEVtYWNzIHdpbGwNCj4gZnJlZXplIGZvciBzZWNvbmRzIHVudGlsIEkgYW0gYWJs
ZSB0byBkbyBhbnl0aGluZyBlbHNlLiAgV29yc2UsIHRoZQ0KPiBmcmVlemUgZGVsYXkgZm9yIGVh
Y2ggY2hhcmFjdGVyIHdpbGwgYWRkIHVwLiAgQW5kIHdoZW52ZXIgdGhlIGZhY2UNCj4gY2hhbmdl
cyAoaW5jbHVkaW5nIGhsLWxpbmUtbW9kZSksIG9yIEkgc3dpdGNoZWQgdG8gYW5vdGhlciBidWZm
ZXIgZm9yDQo+IHNvbWUgdGltZSwgdGhlcmUgd2lsbCBiZSBhIGRlbGF5IGFnYWluLg0KPg0KPiBJ
J20gcHJldHR5IHN1cmUgdGhpcyBpcyBkdWUgdG8gZm9udCBzZWxlY3Rpb24sIGJlY2F1c2UgRW1h
Y3Mgd29uJ3QNCj4gZnJlZXplIGlmIEkgY29uZmlndXJlIG1hbnVhbGx5IHRoZSBmYWxsYmFjayBm
b250cyBmb3IgZWFjaCAnZXhvdGljJw0KPiBzY3JpcHQgSSBlbmNvdW50ZXIuDQo+DQo+IEZvciB0
ZXN0aW5nLCB0aGVyZSBhcmUgc29tZSBzdWNoIGNoYXJhY3RlcnMgaW4gbXkgZmlsZToNCj4NCj4g
44Ch44Ci44Cj44Ck44Cl44Cm44Co44Cp44C444C544C6DQo+DQo+IFvFqywgw7osIMWxLCDHlCwg
w7ksIMiVLCDDuywgxa0sIMiXLCDDvCwgx5YsIMeYLCDHmiwgx5wsIMWvLCDFqSwg4bWkLCDhtZgs
IMqJLCDhtrYsIOG7pywgxbMsIOG5tywg4bulLA0KPiDhubMsIOG5tSwgxrAsIMqKLCDhtrcsIOG1
vywg4baZLCDhubssIOG5uSwg4bupLCDhu6ssIOG7rywg4butLCDhu7EsIOqtkiwg6q2fLCDqnbgs
IOqtjiwg6q2PLCDhtJ0sIOG1mSwg4bSeXQ0KPg0KPiBbw7wsIMeWLCDHmCwgx5osIMecLCDhub0s
IOG1mywg4bWlLCDhub8sIOqdnywgyossIOG2uSwg4baMLCDisbQsIOKxsSwg4bu9LCDKjCwg4ba6
XQ0KPg0KPiBbw5wsIMeVLCDHlywgx5ksIMebLCDhubwsIOG0oCwg4rG9LCDhub4sIOqdniwgxrIs
IOG7vCwgyYUgXQ0KPg0KPiBbIOKCgCwg4oKBLCDigoIsIOKCgywg4oKELCDigoUsIOKChiwg4oKH
LCDigogsIOKCiSwg4oKKLCDigossIOKCjCwg4oKNLCDigo4sIOKAuCwg4bSALCDigpAsIOG0gSwg
ypksIOG0gywg4bWmLCDhtIQsIOG0kCwg4bSSLCDhtIUsIOG0hiwg4bSHLCDigpEsIOKClCwg4bWp
LCDJoiwgypssIOG0piwg4bWnLCDKnCwg4oKVLCDJqiwg4bW7LCDhtaIsIOG0iiwg4rG8LCDhtIss
IOKCliwgyp8sIOKClywg4bSMLCDhtKcsIOG0jSwg4oKYLCDqn7osIMm0LCDhtI4sIOKCmSwg4bSP
LCDigpIsIMm2LCDKmCwg4bSTLCDhtJEsIOG0mCwg4oKaLCDhtKgsIOG0qiwgyoAsIOG1oywg4bSZ
LCDKgSwg4bSaLCDhtagsIOKCmywg4bSbLCDigpwsIOG0nCwg4bWkLCDhtb4sIOG0oCwg4bWlLCDh
tKEsIOKCkywg4bWqLCDKjywg4bSiLCDhtKMgXQ0KPg0KPiBbIOS6lCwg5LyNLCDigoUsIOKBtSwg
4oWkLCDihbQsIOKRpCwg4p6ELCDinbosIOKejiwg4pO5LCDikbgsIOKSjCwg77yVLCDjioQsIOOI
pCwg45CFLCDjoKosIPCghKEgXQ0KDQpXb3VsZCB5b3UgYmUgYWJsZSB0byBwcm92aWRlIGEgc2Vs
Zi1jb250YWluZWQgc2VyaWVzIG9mIHN0ZXBzIHN0YXJ0aW5nDQpmcm9tIGVtYWNzIC1RPw0K




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 9 Jun 2024 19:40:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 09 15:40:23 2024
Received: from localhost ([127.0.0.1]:57023 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sGOOs-0002yE-UQ
	for submit <at> debbugs.gnu.org; Sun, 09 Jun 2024 15:40:23 -0400
Received: from lists.gnu.org ([209.51.188.17]:58848)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <justksqsf@HIDDEN>) id 1sGNjD-00011k-Qf
 for submit <at> debbugs.gnu.org; Sun, 09 Jun 2024 14:57:20 -0400
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 <justksqsf@HIDDEN>)
 id 1sGNix-0006t8-0Q
 for bug-gnu-emacs@HIDDEN; Sun, 09 Jun 2024 14:57:03 -0400
Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <justksqsf@HIDDEN>)
 id 1sGNiv-0005Pq-Eq
 for bug-gnu-emacs@HIDDEN; Sun, 09 Jun 2024 14:57:02 -0400
Received: by mail-wm1-x342.google.com with SMTP id
 5b1f17b1804b1-42121d27861so32277675e9.0
 for <bug-gnu-emacs@HIDDEN>; Sun, 09 Jun 2024 11:57:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1717959419; x=1718564219; darn=gnu.org;
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=iY2mXsjEbS5Qny6F0eg3wTNpMKWQdYzCYIMwtdYfy+U=;
 b=Z6BxkhjN8kl5qvvznCQpVepJZKVbP6pP4uyboPLjoh1yUktjcTEyTPNU4V+XsscTQk
 O3si7p1Z03ks29rSp2MR7PVcNXl36fxuK/fDD5EvPH5gDS1tu6DsO993C6tvQr90mOM2
 eGMVBe9l1pfHQ/GkpmhA4jUxl/X9VrilN05RVCeKxlioJC90QyJZlovS1ml53uq6ArQZ
 eIiy3lJW1jUcTq3VjykKNSJzz3Z6wLU0JSkKQ66OTT6Kdeqep+FLVZywWzpgI9eNeh5a
 Nnmrt6x8PSejTnuhDJxz0KiKnotkhlCne2OIegSqyjLlHCUENm5kauvlabJXOMSYvZku
 R9nw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1717959419; x=1718564219;
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=iY2mXsjEbS5Qny6F0eg3wTNpMKWQdYzCYIMwtdYfy+U=;
 b=LEcruyfA4N9aCQW9Lq/JPVH/blg9S5kggshpUlIxNQ+CbjLUwosIdjT33aBBE13nWd
 2H9DpT0wOuULjVxjaMupm0Slw+2ApiZHjHBVEHfVRu8mGu04ukoMTyoNeYPGlKobMNCz
 ihqjSLmefBipux/HE9KcHu3w2YBRUp2fYVFGmlK8Cn5KfQCWiACJ2zC/DW1Do2FLqLg3
 ZkoKO00xY1yNGDgGkZx+u5gyoKs+UuKWXMZf8Z2y998ajTQeD0SJ1yyWkieKufABIfuC
 SBLuNW4xqWTmRNVVmx2K/hj7oex9F9o1xiFfaF1Wu4tKmXNFeNgUh7WJLGN8rLH2RVz0
 kh+Q==
X-Gm-Message-State: AOJu0Yyyg6xFzfygdgN1A8oyLRtgKQF4R6cHM4rRM12WohsEiI5YVoxt
 Ojwxbz9wVtBvYUH3avVV3QYxiwyjBY40kVWZp+nNZnrOfiKNBlK2NbSitpZeevU=
X-Google-Smtp-Source: AGHT+IFui3BOlU3C/6TH5Yd7Vgf+JsTMLF0H0GxBuC3+rqMquUYSJmNI47DQLXg1GA8VGuw0ZhLHfw==
X-Received: by 2002:a05:600c:510a:b0:421:7df5:656a with SMTP id
 5b1f17b1804b1-4217df569aamr27704505e9.18.1717959418505; 
 Sun, 09 Jun 2024 11:56:58 -0700 (PDT)
Received: from smtpclient.apple ([2a02:2454:c02f:2500:548a:4575:d560:48ed])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-42196386d13sm20803185e9.12.2024.06.09.11.56.57
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Sun, 09 Jun 2024 11:56:58 -0700 (PDT)
From: Kai Ma <justksqsf@HIDDEN>
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
Subject: 30.0.50; Performance issues with font selection
Message-Id: <D0616033-B8BD-4260-91A9-2C89347DC0BE@HIDDEN>
Date: Sun, 9 Jun 2024 20:56:47 +0200
To: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
X-Mailer: Apple Mail (2.3774.500.171.1.1)
Received-SPF: pass client-ip=2a00:1450:4864:20::342;
 envelope-from=justksqsf@HIDDEN; helo=mail-wm1-x342.google.com
X-Spam_score_int: -15
X-Spam_score: -1.6
X-Spam_bar: -
X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 FROM_LOCAL_NOVOWEL=0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.8 (-)

Recently, I have the need of editing files with extraordinary ranges of
Unicode code points, and the performance problem with font selection
becomes too obvious to ignore.

I have currently (length (font-family-list)) =3D 582 font families
installed. And whenever I input some ununsual characters, Emacs will
freeze for seconds until I am able to do anything else.  Worse, the
freeze delay for each character will add up.  And whenver the face
changes (including hl-line-mode), or I switched to another buffer for
some time, there will be a delay again.

I'm pretty sure this is due to font selection, because Emacs won't
freeze if I configure manually the fallback fonts for each 'exotic'
script I encounter.

For testing, there are some such characters in my file:

=E3=80=A1=E3=80=A2=E3=80=A3=E3=80=A4=E3=80=A5=E3=80=A6=E3=80=A8=E3=80=A9=E3=
=80=B8=E3=80=B9=E3=80=BA

[=C5=AB, =C3=BA, =C5=B1, =C7=94, =C3=B9, =C8=95, =C3=BB, =C5=AD, =C8=97, =
=C3=BC, =C7=96, =C7=98, =C7=9A, =C7=9C, =C5=AF, =C5=A9, =E1=B5=A4, =E1=B5=98=
, =CA=89, =E1=B6=B6, =E1=BB=A7, =C5=B3, =E1=B9=B7, =E1=BB=A5,
=E1=B9=B3, =E1=B9=B5, =C6=B0, =CA=8A, =E1=B6=B7, =E1=B5=BF, =E1=B6=99, =
=E1=B9=BB, =E1=B9=B9, =E1=BB=A9, =E1=BB=AB, =E1=BB=AF, =E1=BB=AD, =E1=BB=B1=
, =EA=AD=92, =EA=AD=9F, =EA=9D=B8, =EA=AD=8E, =EA=AD=8F, =E1=B4=9D, =E1=B5=
=99, =E1=B4=9E]

[=C3=BC, =C7=96, =C7=98, =C7=9A, =C7=9C, =E1=B9=BD, =E1=B5=9B, =E1=B5=A5, =
=E1=B9=BF, =EA=9D=9F, =CA=8B, =E1=B6=B9, =E1=B6=8C, =E2=B1=B4, =E2=B1=B1, =
=E1=BB=BD, =CA=8C, =E1=B6=BA]

[=C3=9C, =C7=95, =C7=97, =C7=99, =C7=9B, =E1=B9=BC, =E1=B4=A0, =E2=B1=BD, =
=E1=B9=BE, =EA=9D=9E, =C6=B2, =E1=BB=BC, =C9=85 ]

[ =E2=82=80, =E2=82=81, =E2=82=82, =E2=82=83, =E2=82=84, =E2=82=85, =E2=82=
=86, =E2=82=87, =E2=82=88, =E2=82=89, =E2=82=8A, =E2=82=8B, =E2=82=8C, =
=E2=82=8D, =E2=82=8E, =E2=80=B8, =E1=B4=80, =E2=82=90, =E1=B4=81, =CA=99, =
=E1=B4=83, =E1=B5=A6, =E1=B4=84, =E1=B4=90, =E1=B4=92, =E1=B4=85, =E1=B4=86=
, =E1=B4=87, =E2=82=91, =E2=82=94, =E1=B5=A9, =C9=A2, =CA=9B, =E1=B4=A6, =
=E1=B5=A7, =CA=9C, =E2=82=95, =C9=AA, =E1=B5=BB, =E1=B5=A2, =E1=B4=8A, =
=E2=B1=BC, =E1=B4=8B, =E2=82=96, =CA=9F, =E2=82=97, =E1=B4=8C, =E1=B4=A7, =
=E1=B4=8D, =E2=82=98, =EA=9F=BA, =C9=B4, =E1=B4=8E, =E2=82=99, =E1=B4=8F, =
=E2=82=92, =C9=B6, =CA=98, =E1=B4=93, =E1=B4=91, =E1=B4=98, =E2=82=9A, =
=E1=B4=A8, =E1=B4=AA, =CA=80, =E1=B5=A3, =E1=B4=99, =CA=81, =E1=B4=9A, =
=E1=B5=A8, =E2=82=9B, =E1=B4=9B, =E2=82=9C, =E1=B4=9C, =E1=B5=A4, =E1=B5=BE=
, =E1=B4=A0, =E1=B5=A5, =E1=B4=A1, =E2=82=93, =E1=B5=AA, =CA=8F, =E1=B4=A2=
, =E1=B4=A3 ]

[ =E4=BA=94, =E4=BC=8D, =E2=82=85, =E2=81=B5, =E2=85=A4, =E2=85=B4, =E2=91=
=A4, =E2=9E=84, =E2=9D=BA, =E2=9E=8E, =E2=93=B9, =E2=91=B8, =E2=92=8C, =
=EF=BC=95, =E3=8A=84, =E3=88=A4, =E3=90=85, =E3=A0=AA, =F0=A0=84=A1 ]





Acknowledgement sent to Kai Ma <justksqsf@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#71454; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 10 Jun 2024 15:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.