From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] feature/byte-switch c4316a2: ; bytecomp.el (byte-compile-cond-jump-table): Add TODO note Date: Mon, 06 Feb 2017 10:35:13 -0500 Message-ID: References: <20170206140314.23384.66886@vcs.savannah.gnu.org> <20170206140315.229CD220145@vcs.savannah.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486396804 17117 195.159.176.226 (6 Feb 2017 16:00:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2017 16:00:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Vibhav Pant To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 16:59:57 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1calhs-00045l-B2 for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 16:59:56 +0100 Original-Received: from localhost ([::1]:49187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1calhy-00049e-1F for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 11:00:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1calK7-0000aj-Hw for emacs-devel@gnu.org; Mon, 06 Feb 2017 10:35:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1calK1-0001jj-Up for emacs-devel@gnu.org; Mon, 06 Feb 2017 10:35:23 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:39679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1calK1-0001iu-Od for emacs-devel@gnu.org; Mon, 06 Feb 2017 10:35:17 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v16FZDRQ027359; Mon, 6 Feb 2017 10:35:14 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id AE78D662E0; Mon, 6 Feb 2017 10:35:13 -0500 (EST) In-Reply-To: <20170206140315.229CD220145@vcs.savannah.gnu.org> (Vibhav Pant's message of "Mon, 6 Feb 2017 14:03:14 +0000 (UTC)") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV5941=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5941> : inlines <5673> : streams <1731761> : uri <2372558> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:212036 Archived-At: > + ;; TODO: Once :linear-search is implemented for `make-hash-table' > + ;; set it to `t' for cond forms with a small number of cases. Indeed, we can probably substantially improve our hash-table performance for small hash tables (not only in terms of CPU use but also in terms of memory use). But rather than a :linear-search keyword to make-hash-table, can't we just test the value of `count` and use a linear search if it's small? Stefan