From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#71454: 30.0.50; Performance issues with font selection Date: Mon, 10 Jun 2024 18:42:35 +0200 Message-ID: References: <87v82h6a33.fsf@jeremybryant.net> <865xuh9fmt.fsf@gnu.org> <4F59591A-23F6-4DB2-A350-52ED24408F39@gmail.com> <86sexl7y2f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32800"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Kai Ma , 71454@debbugs.gnu.org, jb@jeremybryant.net To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 10 18:44:56 2024 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 1sGi8d-0008JH-LS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jun 2024 18:44:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sGi8V-0007Ki-DW; Mon, 10 Jun 2024 12:44:47 -0400 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 1sGi8T-0007JW-PE for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 12:44:45 -0400 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 1sGi8S-0002Zb-TC for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 12:44:45 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sGi8j-0005Nm-SN for bug-gnu-emacs@gnu.org; Mon, 10 Jun 2024 12:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jun 2024 16:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71454 X-GNU-PR-Package: emacs Original-Received: via spool by 71454-submit@debbugs.gnu.org id=B71454.171803784320505 (code B ref 71454); Mon, 10 Jun 2024 16:45:01 +0000 Original-Received: (at 71454) by debbugs.gnu.org; 10 Jun 2024 16:44:03 +0000 Original-Received: from localhost ([127.0.0.1]:45854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGi7m-0005Ke-S3 for submit@debbugs.gnu.org; Mon, 10 Jun 2024 12:44:03 -0400 Original-Received: from mail-ej1-f45.google.com ([209.85.218.45]:60899) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sGi7k-0005Js-TC for 71454@debbugs.gnu.org; Mon, 10 Jun 2024 12:44:02 -0400 Original-Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a63359aaacaso16224466b.1 for <71454@debbugs.gnu.org>; Mon, 10 Jun 2024 09:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718037757; x=1718642557; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=QRiOxAvAd1dVaoTMK8zHxCRgSEr079N3PMyTP0iEShk=; b=P7fH81QNwYeW75I3ClNkqylKMbM7J/xhtytzXYLEOIsIcHuMFmuhx3PpI9eeoXuoVH /yhgxOXD9eGC/R6/JDpPnQ4dt7FBqwvMLDvxzBg732p+q+wA+aNJU45jaB8LJT8s+71+ lbrXX3bZU21gdXaI4D91ewG/cKt+8llt/cBvjemIbk3K+K+bNTBfLBKonBcle/gdAVsg Gt5gu4t9xAu9ymd7ompVMX/PHdEI+MGE7peXpY7cfyPpbkw5G914+wy88Jbx+dqWYmUm Zir+ad5aMKlEYUFiijiPMOde0mgObqoMMSEYkNJwlT3Lk9+LuaZUMdgZevxY0dN3vxbr q5AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718037757; x=1718642557; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QRiOxAvAd1dVaoTMK8zHxCRgSEr079N3PMyTP0iEShk=; b=CxSIgyI9NoTyQRXECF4LuXecCQtQ0Gvm0/m56Lyl/5C0CoMniRYjmeM8+Smigtzar5 VIMtygLVQMtlkCrWJ2RloSPZsfeMC0HjTzSTnO2lHBRwDEmtsbsUoNKM6Ys7wqzIpiub UOU1Ic2VHlF3C0bFSaG/2LVNaGZSYxpPx32Dl/D7q6246Xy5a/KXHBMIPJk/mdijhGxN UmQb+DLOJtIfzZ9taNfQSi1SyPMOHHUyrq35p7RsTU+LuySy8tRxo1imNvnLWl1PFfDz LeDLenzUWySKxSY2pESGvMh8VJNpXsGtG+lPIaCQeT5xeF1rewkFVnBxNS72yZim8oq0 ogqQ== X-Forwarded-Encrypted: i=1; AJvYcCUyYhn8OVC8QeXzYATNVXMmD9G9YAaqLhOhhlDS6wTljdCcb2xSmkfMemMg+lALdMMmFfGkTi9xiInr+1+qYK/I0W87UWk= X-Gm-Message-State: AOJu0YwaP7LH3u28/kWwdQD1j23wwEHiWJ2TtjZZgAoXQaAl1bqIY9oN tMJagdfnMCP2EhRjUGOl4PfUDds/AYDo+yL6WKXS4U7SqsX4cuwK38xB1A== X-Google-Smtp-Source: AGHT+IG/bVKe3+DZG8RQSPUagKngsJ3lCnH8iVIhplOkdSXSEEB91iLnw9/SjrdS/N6PR0QKMr4ERQ== X-Received: by 2002:a17:906:3b11:b0:a6e:f3d7:4107 with SMTP id a640c23a62f3a-a6ef3f5df46mr577979266b.72.1718037757167; Mon, 10 Jun 2024 09:42:37 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3ab81.dip0.t-ipconnect.de. [79.227.171.129]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6effb9cd7asm354904466b.208.2024.06.10.09.42.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 09:42:36 -0700 (PDT) In-Reply-To: <86sexl7y2f.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 10 Jun 2024 15:59:52 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287054 Archived-At: Eli Zaretskii writes: >> From: Kai Ma >> Date: Mon, 10 Jun 2024 14:35:50 +0200 >> Cc: Jeremy Bryant , >> 71454@debbugs.gnu.org >> >> >> >> > On Jun 10, 2024, at 13:55, Eli Zaretskii wrote: >> > >> >> Cc: 71454@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: >> >>> >> >>> 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? Don't know, but the display of the strings mentioned is instantaneous here too (macOS 14.5), with (length (font-family-list)) == 281. Maybe use the Font Book app and see if the fonts are all valid? (Start Font Book, choose All Fonts, select them all with Command + A, then context menu on the selectoin and choose Validate.)