From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41200: Displaying a tooltip with x-show-tip gets very slow as more faces are defined Date: Fri, 15 May 2020 22:38:21 +0300 Message-ID: <838shtugya.fsf@gnu.org> References: <8fd8896a-cd5c-66f4-4792-f65cac4dc4f5@gmail.com> <83lflx896q.fsf@gnu.org> <837dxd31cb.fsf@gnu.org> <789d786d-a07a-65c1-c0e4-433e4c18d64e@gmail.com> <835zcxgrby.fsf@gnu.org> <833681glas.fsf@gnu.org> <53252e93-085c-477f-21df-c909082dffc2@gmail.com> <83blmpuige.fsf@gnu.org> <6a828c8b-2856-7f71-811b-086600d8417e@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="55945"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41200@debbugs.gnu.org, juri@linkov.net To: =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 15 21:39:17 2020 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 1jZgAu-000EQJ-MQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 21:39:16 +0200 Original-Received: from localhost ([::1]:51002 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZgAt-00056O-Ok for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 15:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZgAh-0004yp-9Z for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 15:39:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55487) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZgAh-0004QA-0E for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 15:39:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZgAg-0007XA-V8 for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 15:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 May 2020 19:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41200 X-GNU-PR-Package: emacs Original-Received: via spool by 41200-submit@debbugs.gnu.org id=B41200.158957152328929 (code B ref 41200); Fri, 15 May 2020 19:39:02 +0000 Original-Received: (at 41200) by debbugs.gnu.org; 15 May 2020 19:38:43 +0000 Original-Received: from localhost ([127.0.0.1]:38799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZgAN-0007WW-Jx for submit@debbugs.gnu.org; Fri, 15 May 2020 15:38:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZgAL-0007W7-6O for 41200@debbugs.gnu.org; Fri, 15 May 2020 15:38:41 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48420) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZgAF-0004Pd-DK; Fri, 15 May 2020 15:38:35 -0400 Original-Received: from [176.228.60.248] (port=4068 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZgAE-0006xh-DD; Fri, 15 May 2020 15:38:34 -0400 In-Reply-To: <6a828c8b-2856-7f71-811b-086600d8417e@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel on Fri, 15 May 2020 15:23:00 -0400) 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" Xref: news.gmane.io gmane.emacs.bugs:180357 Archived-At: > Cc: 41200@debbugs.gnu.org, juri@linkov.net > From: Clément Pit-Claudel > Date: Fri, 15 May 2020 15:23:00 -0400 > > >>> What is the default size of a hash-table? > >> > >> 65 entries, I think. > > > > The number of basic faces is just 18. Is 65 a good initial size for > > that? > > I think that map stores more than just the basic faces: in fact, $ emacs -Q --batch --eval '(print (length (frame-face-alist)))' prints 100, so maybe I should even make the map larger by default? We are miscommunicating. I was talking about the size before loadup, i.e. in temacs when it starts up. Later, when we load preloaded packages, the size should grow, but the hash-table takes care of that by itself, doesn't it?