From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Vibhav Pant Newsgroups: gmane.emacs.devel Subject: Re: [PATCH]: Add new bytecode op `switch' for implementing branch tables. Date: Tue, 7 Feb 2017 14:15:18 +0530 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1486457358 12319 195.159.176.226 (7 Feb 2017 08:49:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2017 08:49:18 +0000 (UTC) Cc: "emacs-devel@gnu.org" To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 07 09:49:15 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 1cb1Sc-00034U-FA for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2017 09:49:14 +0100 Original-Received: from localhost ([::1]:52707 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb1Si-0000TO-4J for ged-emacs-devel@m.gmane.org; Tue, 07 Feb 2017 03:49:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cb1PA-0006rd-Ew for emacs-devel@gnu.org; Tue, 07 Feb 2017 03:45:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cb1P9-0006eo-Df for emacs-devel@gnu.org; Tue, 07 Feb 2017 03:45:40 -0500 Original-Received: from mail-yw0-x242.google.com ([2607:f8b0:4002:c05::242]:32909) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cb1P9-0006eJ-AL for emacs-devel@gnu.org; Tue, 07 Feb 2017 03:45:39 -0500 Original-Received: by mail-yw0-x242.google.com with SMTP id u68so8929106ywg.0 for ; Tue, 07 Feb 2017 00:45:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3gAbJIPj2QmqthCwTppuI1NHcqb0XFLsWg2u97IfoYw=; b=FDMCcEPn2nIuc+5iUYA5S9HceR51DwRB7fTxliVVf1AQK076cuCkNLjkAx8lbgTHtj nIJeyI3JCpFC7u1dY0vkH9lqL3yNLjHQd0784ss5yWjoeIhpdHyk68LtROq7WEnc5Sn8 lUmR7jwN1ov7YURU0ZijW5sRF95S+piFyxdRAa8WkhF2qbbFdCK3rgBRnRcl59Gq6GBd b2mMLNM45qejilptBMRSYbzN+qE86fvShsnoIbX+FcaiGU7nkdoqY1H1/tIT2bvZ5ySl ZYsfeOqCkHwGQuMKmxqUiIQlQNKHd8D0VoJdmwFrn0nL6B6L6VYonGzKbpSt1a9PflgB ah4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3gAbJIPj2QmqthCwTppuI1NHcqb0XFLsWg2u97IfoYw=; b=GEUSR5Cz3NOTkwCRRQP0gAgtq4RdWjgHP+PjqNz6nhdt8itXBLC31CASZu+hRLdL/S xZuKh8wOsiw9Gzt1gT7LcrZ4uvhPbo9poyiyIT9ZwBlP+R9jCI+zGv80R0LsOYbETWRb jF4RXmYKC0qI6iE0Kf7MjMnI9jnfhgRQt+Np+lR5BvJkDqbLvGz/fFlwVce5L4bfxnwA TyEJazpWAvhfBJ4qeMtK/sMY6bWCx8P5gphjMP5SarU8seB3NLS4LuK1BRcmQZS6aqUh 7+RDkI30olygQJeU8+Y2W/IHgIjLpEy3RYY/HaDU9HLzSQuiTvDnO/F4zweKgI4JaCXC H9Iw== X-Gm-Message-State: AIkVDXL7UI8NvMI5Cpt9xwx5uWBPYsLOWfuNO3vWUWhaw5Bqsk1rLLfM+qZ0sNKOCmy4IisPBuMqmKWX4vuAIg== X-Received: by 10.13.224.4 with SMTP id j4mr6934736ywe.139.1486457138602; Tue, 07 Feb 2017 00:45:38 -0800 (PST) Original-Received: by 10.129.153.77 with HTTP; Tue, 7 Feb 2017 00:45:18 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c05::242 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:212082 Archived-At: On Tue, Feb 7, 2017 at 12:00 AM, Stefan Monnier wrote: > Hmm... so goto-if-nil is never used any more? Aren't there cases where > byte-switch results in slower code than goto-if-nil? Once linear search for gethash when the number of keys are small is implemented, byte-switch should still be faster, as all byte-goto-if-nil and byte-goto-if-nil-else-pop bytecode is "replaced" with native linear search code. -- Vibhav Pant vibhavp@gmail.com