From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Change Emacs 'sort' API to use three-way comparison Date: Sat, 30 Aug 2014 20:07:47 +0200 Message-ID: <87bnr1kg0c.fsf@building.gnus.org> References: <83fvgfinea.fsf@gnu.org> <5400EE70.8050207@cs.ucla.edu> <87r3zyjbud.fsf@building.gnus.org> <5401FF8D.5070301@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409422109 10702 80.91.229.3 (30 Aug 2014 18:08:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Aug 2014 18:08:29 +0000 (UTC) Cc: Dmitry Antipov , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 30 20:08:23 2014 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 1XNn4Y-0001ek-MP for ged-emacs-devel@m.gmane.org; Sat, 30 Aug 2014 20:08:22 +0200 Original-Received: from localhost ([::1]:47362 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNn4X-0001af-Ru for ged-emacs-devel@m.gmane.org; Sat, 30 Aug 2014 14:08:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55907) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNn4Q-0001Zi-Ar for emacs-devel@gnu.org; Sat, 30 Aug 2014 14:08:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XNn4K-0004Oo-W5 for emacs-devel@gnu.org; Sat, 30 Aug 2014 14:08:14 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:37632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XNn4K-0004O0-Pi for emacs-devel@gnu.org; Sat, 30 Aug 2014 14:08:08 -0400 Original-Received: from 46.157.241.80.tmi.telenormobil.no ([46.157.241.80] helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XNn42-0001H7-FL; Sat, 30 Aug 2014 20:07:50 +0200 In-Reply-To: <5401FF8D.5070301@cs.ucla.edu> (Paul Eggert's message of "Sat, 30 Aug 2014 09:45:01 -0700") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-MailScanner-ID: 1XNn42-0001H7-FL MailScanner-NULL-Check: 1410026871.03567@4Ak+xYmgGzy+Y4k4pcr5uw X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 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:173910 Archived-At: Paul Eggert writes: > In what sense is the new code slower? If you sort a list, the code is > the same as before. I don't know anything about this code other than what you wrote about it: > We could tune it but I don't see how to get it any faster than 1.5x > slower than before, assuming random input and an expensive comparison > function. It's slower in the sense that you said it's slower. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/