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 12:43:51 -0400 Message-ID: <87zibnuraw.fsf@holos> References: <20170725020650.GA12601@holos.localdomain> <20170726010000.GA14292@holos.localdomain> <83o9s75kus.fsf@gnu.org> <20170727023608.GA1895@holos.localdomain> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501346651 24282 195.159.176.226 (29 Jul 2017 16:44:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Jul 2017 16:44:11 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 29 18:44:04 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 1dbUqP-0005pX-7e for ged-emacs-devel@m.gmane.org; Sat, 29 Jul 2017 18:44:01 +0200 Original-Received: from localhost ([::1]:52922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbUqV-00088v-3t for ged-emacs-devel@m.gmane.org; Sat, 29 Jul 2017 12:44:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dbUqL-00087N-Ga for emacs-devel@gnu.org; Sat, 29 Jul 2017 12:43:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dbUqI-0002Wv-Ai for emacs-devel@gnu.org; Sat, 29 Jul 2017 12:43:57 -0400 Original-Received: from mail-qt0-x22d.google.com ([2607:f8b0:400d:c0d::22d]:37387) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dbUqI-0002WW-6K for emacs-devel@gnu.org; Sat, 29 Jul 2017 12:43:54 -0400 Original-Received: by mail-qt0-x22d.google.com with SMTP id 16so52541201qtz.4 for ; Sat, 29 Jul 2017 09:43:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=MYpRBoOyqawlJ19z5vIbRZAkfRO0t9RSUXKicQWy4Uo=; b=JeD9g/K0xIIgT71ONfjClz5+GOKncOGOS+KihrHTlSfYqheGF7zqFpstFgOxMB0mMJ DIDUu4r88ygklK5mqiJ0gfF8XtMidW+aYM+YkdFPzg279SgfS1asIyne0NBvxuE/MFJo yVbefe9q0AFePGdraGptv4Wy3s1hQvVO11pU0RjkUWqaAdOI+EW9hOXJA9ZcHR8dKyMQ uKpLWjsNqquUU0u5G7yTDTRFofxwUJaUvx4mLu1H1Tz/phHhhXK1AZLZ3gx5EnjNIplF wtHzI+r+Lz47W3nu64QhlTVD26UOxLz53U1zZaCBxtexV/C2lHy6MED3djbjKFPgJLwG j+HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=MYpRBoOyqawlJ19z5vIbRZAkfRO0t9RSUXKicQWy4Uo=; b=hMfiOIeWT/B5zq1jzQ93nz0Od3wK36vGTNCkeXOz6GoreUj5ikIKVZhc6Cvc8yduMM 2n4ow1haYo+w9Aq1MinMNRD2yWB5/T5/+nMIaC7heJC2AApggpvxxcRdntT5k1aKz4cY tKGfELEuj9nugccvhVDiNJ6QB8EQH+kWrMnrNzlmTHOsvR1eG9FuRVl66Hj22pcTeXjC a9XkMNuZQibFOeDsxBle9dZ5V0zZ8urpUH5inSe82MH3OO/fxdkt8E1/JwoGvmacO/Gr xtIoepUV+Vt1BypItOB7mvsGZQqvbk3s0zx9NYyGYKrLD3LeZSdCnQrn6ajpCuLfoN+N 2/Ww== X-Gm-Message-State: AIVw111T9tH/tJBcqpjoZbd4KjgdxJx07UwfXuIFAduZBOFp74CFmEvL LBjPHSJXKR9FjU3lWPTTZQ== X-Received: by 10.200.52.235 with SMTP id x40mr14761666qtb.70.1501346632960; Sat, 29 Jul 2017 09:43:52 -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 a191sm15665349qkg.54.2017.07.29.09.43.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 29 Jul 2017 09:43:52 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id 04CB868E56; Sat, 29 Jul 2017 12:43:51 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Wed, 26 Jul 2017 22:46:23 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::22d 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:217135 Archived-At: 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?