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:05:53 +0300 Message-ID: <83blmpuige.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> 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="54818"; 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:11:12 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 1jZfjk-000E9K-8m for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 21:11:12 +0200 Original-Received: from localhost ([::1]:60460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZfjj-00075Z-9t for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 May 2020 15:11:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jZffi-0001Gy-Gs for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 15:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55432) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jZffi-0002gi-65 for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 15:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jZffi-0006dn-0G for bug-gnu-emacs@gnu.org; Fri, 15 May 2020 15:07: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:07:01 +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.158956958125460 (code B ref 41200); Fri, 15 May 2020 19:07:01 +0000 Original-Received: (at 41200) by debbugs.gnu.org; 15 May 2020 19:06:21 +0000 Original-Received: from localhost ([127.0.0.1]:38745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZff3-0006ca-7h for submit@debbugs.gnu.org; Fri, 15 May 2020 15:06:21 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZff2-0006cK-4F for 41200@debbugs.gnu.org; Fri, 15 May 2020 15:06:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47943) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jZfew-0002cU-Ag; Fri, 15 May 2020 15:06:14 -0400 Original-Received: from [176.228.60.248] (port=2050 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jZfeo-0002Bd-IN; Fri, 15 May 2020 15:06:13 -0400 In-Reply-To: <53252e93-085c-477f-21df-c909082dffc2@gmail.com> (message from =?UTF-8?Q?Cl=C3=A9ment?= Pit-Claudel on Fri, 15 May 2020 14:50:17 -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:180354 Archived-At: > Cc: 41200@debbugs.gnu.org, Juri Linkov > From: Clément Pit-Claudel > Date: Fri, 15 May 2020 14:50:17 -0400 > > >>> No, I was asking why not start with it as nil and actually make a > >>> hash-table when we first need it. > >> > >> Oh, I thought it would be simpler to always have a hash table instead of having to sanity check every time. > > > > 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?