From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Raffael Stocker Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: scanner Date: Fri, 10 Apr 2020 23:17:21 +0200 Message-ID: <87v9m7qbvi.fsf@mnet-mail.de> References: <871rov7dmc.fsf@mnet-mail.de> <87y2r3qfiv.fsf@mnet-mail.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="59884"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.2.0; emacs 26.3 Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 10 23:18:06 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jN12M-000FU0-3y for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Apr 2020 23:18:06 +0200 Original-Received: from localhost ([::1]:39224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jN12L-0002QF-6k for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Apr 2020 17:18:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44021) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jN11m-0001sS-3J for emacs-devel@gnu.org; Fri, 10 Apr 2020 17:17:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jN11k-0001a0-CD for emacs-devel@gnu.org; Fri, 10 Apr 2020 17:17:29 -0400 Original-Received: from mail-out.m-online.net ([2001:a60:0:28:0:1:25:1]:55121) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jN11i-0001Ya-M8 for emacs-devel@gnu.org; Fri, 10 Apr 2020 17:17:27 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48zW765F19z1rqSZ; Fri, 10 Apr 2020 23:17:22 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48zW764MNhz1qql0; Fri, 10 Apr 2020 23:17:22 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 7qr-x8LMPuhn; Fri, 10 Apr 2020 23:17:21 +0200 (CEST) X-Auth-Info: cnzY8xtq9+Rw9kGRZL9h4/3L5tLzRlBpqX+K3H3JL4Z+l4rPENCOdx+VMazF5fOn Original-Received: from EmacsBook (ppp-93-104-88-152.dynamic.mnet-online.de [93.104.88.152]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 10 Apr 2020 23:17:21 +0200 (CEST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:a60:0:28:0:1:25:1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246806 Archived-At: Stefan Monnier writes: > AFAIK we never bother with this optimization. Finding the key-sequence > is supposed to be very cheap (basically a hash-table lookup) because we > pre-compute a "reverse table" from commands to key-bindings. > [ This pre-computation is not that cheap but we the above keyword > argument doesn't prevent its computation. ] Good to know, thanks for the explanation. Raffael