From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] What's the quickest way to contribute? Date: Tue, 13 Jan 2015 14:15:58 +0300 Message-ID: <54B4FE6E.4070600@yandex.ru> References: <54B4899B.8010004@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1421147777 20531 80.91.229.3 (13 Jan 2015 11:16:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Jan 2015 11:16:17 +0000 (UTC) Cc: Oleh Krehel , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 13 12:16:11 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YAzSE-0003n8-0j for ged-emacs-devel@m.gmane.org; Tue, 13 Jan 2015 12:16:10 +0100 Original-Received: from localhost ([::1]:38418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAzSD-0007r5-3r for ged-emacs-devel@m.gmane.org; Tue, 13 Jan 2015 06:16:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAzSA-0007q4-6N for emacs-devel@gnu.org; Tue, 13 Jan 2015 06:16:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YAzS7-0001aT-2N for emacs-devel@gnu.org; Tue, 13 Jan 2015 06:16:06 -0500 Original-Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:37343) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YAzS6-0001a7-QS for emacs-devel@gnu.org; Tue, 13 Jan 2015 06:16:02 -0500 Original-Received: by mail-lb0-f179.google.com with SMTP id z11so1973477lbi.10 for ; Tue, 13 Jan 2015 03:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=gaIX34YviWCPLsGX6ts7IFUxKw0aGAwGYTplXoUT560=; b=yTWbP08nppednUPCoXkBcBlxRWTnwY4MwUeHZBSAmubT9a5Emn/oQ/C4he3xy5J4j0 gW5MqVoXZqNdqLWSfdRxDc4jG9mWrGJs33/nOGVZfkKEQMaOEtU+M8fzav1skS8ShOBA 8+HPj1xNpEzT1dhit5b1n1qGhZfSw1KBImqNPdfMVOTBAdCLer17XI7EPEXGbCCLG0K8 hfvUott66zcgKOvWqmvE7/Zb4I3JNi0jJhAhszNso+yFKnyctNYjvIZmwlB4QQ4L2r35 Va/KehLgIO2yNfNiK+u6Oj9A1Yx70zjkpmU73c/69ctrD9duTLYDI0rMYMirD9ATROqn LQYQ== X-Received: by 10.112.162.4 with SMTP id xw4mr41214888lbb.89.1421147762079; Tue, 13 Jan 2015 03:16:02 -0800 (PST) Original-Received: from [192.168.1.3] ([178.252.98.87]) by mx.google.com with ESMTPSA id 1sm754151lay.40.2015.01.13.03.16.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jan 2015 03:16:01 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:33.0) Gecko/20100101 Thunderbird/33.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181213 Archived-At: On 01/13/2015 08:10 AM, Stefan Monnier wrote: > I think algorithmically, it's equivalent (both are O(N), basically). On some inputs, `cl-remove-if-not' could save on memory churn (less consing in the process), if the result list is small. Or if there's nothing to remove: it will simply return the original list.