From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23930: 25.0.95; "M-: 3072 RET" very slow to echo "3072 (#o6000, #xc00)" Date: Sun, 10 Jul 2016 05:38:36 +0300 Message-ID: <83poqmfc9f.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468118362 19371 80.91.229.3 (10 Jul 2016 02:39:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 10 Jul 2016 02:39:22 +0000 (UTC) Cc: 23930@debbugs.gnu.org To: Richard Copley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 10 04:39:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bM4eE-0004rx-Cx for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jul 2016 04:39:10 +0200 Original-Received: from localhost ([::1]:53128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bM4eD-0006th-B2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jul 2016 22:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bM4e7-0006tb-6k for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 22:39:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bM4e6-0003AS-AG for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 22:39:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bM4e6-0003AN-6l for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 22:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bM4e5-0001Nk-Uh for bug-gnu-emacs@gnu.org; Sat, 09 Jul 2016 22:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2016 02:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23930 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23930-submit@debbugs.gnu.org id=B23930.14681183375301 (code B ref 23930); Sun, 10 Jul 2016 02:39:01 +0000 Original-Received: (at 23930) by debbugs.gnu.org; 10 Jul 2016 02:38:57 +0000 Original-Received: from localhost ([127.0.0.1]:44540 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bM4e1-0001NR-2b for submit@debbugs.gnu.org; Sat, 09 Jul 2016 22:38:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bM4dy-0001NA-SQ for 23930@debbugs.gnu.org; Sat, 09 Jul 2016 22:38:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bM4do-00038X-Fa for 23930@debbugs.gnu.org; Sat, 09 Jul 2016 22:38:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bM4do-00038R-Bz; Sat, 09 Jul 2016 22:38:44 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2501 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bM4dm-00040d-IN; Sat, 09 Jul 2016 22:38:43 -0400 In-reply-to: (message from Richard Copley on Sat, 9 Jul 2016 22:32:43 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:120734 Archived-At: > From: Richard Copley > Date: Sat, 9 Jul 2016 22:32:43 +0100 > > Recipe from 'emacs -Q': > M-: 3072 RET > > This has the result of echoing "3072 (#o6000, #xc00)", but there's a > pause of around 8 seconds before the result is echoed. The long wait > is the bug I'm reporting. It looks for a font to display the codepoint. > Forgive me if this is hopelessly naive, but as we're only looking for > one {character or whatever}, is there room to optimize by memoizing > the corresponding {whatever} in each codepage, and using it while we're > searching the font files? It's Windows that does this, not us. Emacs just tries all the fonts it can, looking for the character, until it gives up.