From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH v2] Bound index checks in cl-seq functions Date: Sun, 5 Feb 2017 11:11:22 -0500 Message-ID: <3026a9d6-fd50-ff2d-d702-d895402430c4@gmail.com> References: <87efzdrjsj.fsf@calancha-pc> <87lgtlru13.fsf_-_@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1486311098 28430 195.159.176.226 (5 Feb 2017 16:11:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Feb 2017 16:11:38 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Cc: Philipp Stephani , Emacs developers To: Tino Calancha , Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 05 17:11:32 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 1caPPX-00071Z-Sj for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2017 17:11:32 +0100 Original-Received: from localhost ([::1]:43689 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caPPa-0005Nc-HX for ged-emacs-devel@m.gmane.org; Sun, 05 Feb 2017 11:11:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1caPPT-0005NX-Em for emacs-devel@gnu.org; Sun, 05 Feb 2017 11:11:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1caPPQ-0007fv-8d for emacs-devel@gnu.org; Sun, 05 Feb 2017 11:11:27 -0500 Original-Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:35097) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1caPPQ-0007fq-3j for emacs-devel@gnu.org; Sun, 05 Feb 2017 11:11:24 -0500 Original-Received: by mail-qk0-x241.google.com with SMTP id u25so5338227qki.2 for ; Sun, 05 Feb 2017 08:11:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=u1RyWoifA8p4dXS98uWlrzC1p1Nne2LGUxTdwx04SUg=; b=IYAAkchDeo0kcZ8azKmosQbO8tGBqtd4IpkymfCEk9NcVXC6NTtWGVlE1dxDtXQjde hacHjkv6NJX5RjHmQUS1C+s1RvPVC9999dHZ0BNj9FnlSPkMR/n/rL50197bBCJQJ81l IaOieja/yx//aeFPdWzkG5By6EVu1O46Ku+RqLblUxT4OT4mkxSAhQKeJFOZSeBZwk4v hYlaSvqEDSTu4k7qN65sqtVv4xYV7Oy5rCuZ8wLN//XL82RkMjdsmj3mMEFG0TeS0CzN fk9SdjQ19H04kDbquI/WZRgN6iOs+/E1SOpJ73c4BKBKjcKkUkjCzBuNaV/fVKkuUNsr 4fVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=u1RyWoifA8p4dXS98uWlrzC1p1Nne2LGUxTdwx04SUg=; b=bwqgyDUwb4XqTuoDGwH/RIqyKIYF3iPZ/AOGkKotG9b+nO2n3NWlWj2IgTdFg20JP0 uljP7KptBomakK5w2SflB1hf9a6CuCjn2uvjNskA61sxAfm+5jqzMN10QH0TDCxMScTQ +sK/lBaTQsOFDqTUdKXthJQV21uqOCzttbm70orTMLHGj4NURDmVcZFWpxB498d6/tLd TzS0/ziucPOr8M8DibyzpNPMW9CBxEvq2h84yJDZcS6lB1xwQY98zQRFo2vIadypPGWz w5mfJfGTsa2Jqfw3qG0vnF1jOBNTByfJgy23XsP0uGJimecAqUNI4Me7vuVhtt9hofxU 92TQ== X-Gm-Message-State: AMke39n3hQ/M+n20/A93hwyHkGZKgcv5HgDZSBBmc/1A240AppLeQpcMb2RTs77eZiFAfw== X-Received: by 10.55.72.141 with SMTP id v135mr5677553qka.182.1486311083538; Sun, 05 Feb 2017 08:11:23 -0800 (PST) Original-Received: from [192.168.1.106] (c-67-186-135-89.hsd1.ma.comcast.net. [67.186.135.89]) by smtp.gmail.com with ESMTPSA id z23sm30525630qkb.30.2017.02.05.08.11.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 05 Feb 2017 08:11:23 -0800 (PST) In-Reply-To: <87lgtlru13.fsf_-_@calancha-pc> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::241 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:211999 Archived-At: On 2017-02-05 02:11, Tino Calancha wrote: > II) `cl--check-bound-indices' returns on success the sequence[s] > length[s], so that callers don't need to recompute them. This sounds like a good idea, performance wise. But maybe it would be even better to disable these checks when (cl-declaim (optimize (safety 0))) is set? Clément.