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 12:27:40 -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 1486402071 3463 195.159.176.226 (6 Feb 2017 17:27:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2017 17:27:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: "emacs-devel\@gnu.org" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 18:27:47 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 1can4s-0000Yj-To for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 18:27:47 +0100 Original-Received: from localhost ([::1]:49818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1can4x-0000Z0-1v for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2017 12:27:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1can4r-0000Yt-5p for emacs-devel@gnu.org; Mon, 06 Feb 2017 12:27:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1can4o-0004Gw-1V for emacs-devel@gnu.org; Mon, 06 Feb 2017 12:27:45 -0500 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:59798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1can4n-0004Gk-UR for emacs-devel@gnu.org; Mon, 06 Feb 2017 12:27:41 -0500 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v16HReIa029920; Mon, 6 Feb 2017 12:27:40 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 4E36A662E0; Mon, 6 Feb 2017 12:27:40 -0500 (EST) In-Reply-To: (Vibhav Pant's message of "Mon, 6 Feb 2017 22:27:45 +0530") X-NAI-Spam-Flag: NO X-NAI-Spam-Level: X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0.1 X-NAI-Spam-Rules: 3 Rules triggered GEN_SPAM_FEATRE=0.1, EDT_SA_DN_PASS=0, RV5941=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5941> : inlines <5674> : streams <1731772> : uri <2372602> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:212047 Archived-At: >> 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? Nitpick: actually, it should be based on the hash-table's *size* rather than its *count*. Stefan