From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: pure-fns in byte-opt.el Date: Sat, 29 Jul 2017 15:48:58 -0400 Message-ID: <20170729194858.GA14205@holos.localdomain> References: <20170725020650.GA12601@holos.localdomain> <20170726010000.GA14292@holos.localdomain> <83o9s75kus.fsf@gnu.org> <20170727023608.GA1895@holos.localdomain> <87zibnuraw.fsf@holos> <838tj72m5b.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: blaine.gmane.org 1501357759 20320 195.159.176.226 (29 Jul 2017 19:49:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Jul 2017 19:49:19 +0000 (UTC) User-Agent: Mutt/1.8.3 (2017-05-23) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 29 21:49:13 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 1dbXjY-0004aG-Cz for ged-emacs-devel@m.gmane.org; Sat, 29 Jul 2017 21:49:08 +0200 Original-Received: from localhost ([::1]:53253 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbXjb-0000DZ-0i for ged-emacs-devel@m.gmane.org; Sat, 29 Jul 2017 15:49:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbXjU-0000Bv-BL for emacs-devel@gnu.org; Sat, 29 Jul 2017 15:49:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbXjR-0004K1-9e for emacs-devel@gnu.org; Sat, 29 Jul 2017 15:49:04 -0400 Original-Received: from mail-qt0-x236.google.com ([2607:f8b0:400d:c0d::236]:35995) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbXjR-0004Jc-1m for emacs-devel@gnu.org; Sat, 29 Jul 2017 15:49:01 -0400 Original-Received: by mail-qt0-x236.google.com with SMTP id v29so72722959qtv.3 for ; Sat, 29 Jul 2017 12:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0dbrJPY5YY9cVKy378STuk1hJMsXIa678tMMWb1zBjI=; b=fhfdVewdfkhQFVmJSWUlTbL9LXSf8AyLypXEMtpkS40uJiiw6wvp7HAzkUm6OVqE3N qmHn+iOy0MgtKwHph9xhEFEH++i4DpY42eOYbGYlusTSNOslqnnxqjSKxM0FVyZSKbyO MN8i+0cVxcsjGkeE3kO+YyVNLq9nydVPPxHeZUC4OexiGGkh3Wz3I9YnK//kbMpj6txK 4woQRYgfSpSNVOAkaYZKhBnKnYLZ6l/efWG08b9paUNOrZuEbxwTh2GDri6qCAuR2fTA 9yUQ0zE6pJ+5AntOVSlN6jiyQP2VzmAc+DsYCDMaO701FN2d9rVNAUQDIOCdn/+B64MW dCvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0dbrJPY5YY9cVKy378STuk1hJMsXIa678tMMWb1zBjI=; b=g1HQIZArNV9uighWrIiKV9ORx0aSHS4+KK399uCehSPlDI7ZF68R4/Y3CAiWtkngVQ R+rDNOYO+uTeT7WVwDT/DmrIpjZDtH5GvWxw7ChoceWxhRs+qblQop62uLVP8S/pjKGX L7LMh2nhf6zSBbm45Gd74xAWIpZ/nJuLczw//QlKO9DKzvSfyp26AzAjYFCoGANJG549 +3buTo4fSm9rHXPEqDbpjoL/zMaN+SgpuDg6jYz6q6gAsYTMtip3wpS2/Rf36efYAWpo k8I6+rXJknD+3Mod2uxSCbeiLgQrKHkJZNMwjpf+BJvP0uqAd8ibwjFZr+6bWSLHZgU5 GFTg== X-Gm-Message-State: AIVw111CfuxfoTWver+vfsUUgmxieseY2hkWEjOA5NSMByoQMX9QBee6 U7NaNpNbuEBw9fmx X-Received: by 10.200.9.27 with SMTP id t27mr15216175qth.107.1501357740007; Sat, 29 Jul 2017 12:49:00 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-64-125-158.bltmmd.fios.verizon.net. [173.64.125.158]) by smtp.gmail.com with ESMTPSA id i18sm20341760qkh.18.2017.07.29.12.48.58 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Jul 2017 12:48:59 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 61EC868E56; Sat, 29 Jul 2017 15:48:58 -0400 (EDT) Content-Disposition: inline In-Reply-To: <838tj72m5b.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::236 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:217146 Archived-At: On 29/07/17 at 08:22pm, Eli Zaretskii wrote: >> From: Mark Oteiza >> Date: Sat, 29 Jul 2017 12:43:51 -0400 >> Cc: emacs-devel@gnu.org >> >> Stefan Monnier writes: >> >> >> (let ((pure-fns >> >> - '(concat symbol-name regexp-opt regexp-quote string-to-syntax))) >> >> + '(concat symbol-name regexp-opt regexp-quote string-to-syntax >> >> + make-vector))) >> > >> > Ah, now that makes a lot more sense: make-vector is much less pure than >> > string-to-char. The above will cause the compiler to replace >> > >> > (make-vector 2 ?a) >> > >> > with >> > >> > [?a ?a] >> > >> > so you end with a single immediate vector being re-used over and over, >> > instead of having a new vector created each time. >> >> But reading a literal vector still generates a new vector, no? > >Why do you assume it will be read? I guess because I don't understand how bytecode is executed.