Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80239 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73381 invoked from network); 6 Jan 2015 15:14:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jan 2015 15:14:35 -0000 Authentication-Results: pb1.pair.com header.from=dz@heroku.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dz@heroku.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain heroku.com designates 74.125.82.41 as permitted sender) X-PHP-List-Original-Sender: dz@heroku.com X-Host-Fingerprint: 74.125.82.41 mail-wg0-f41.google.com Received: from [74.125.82.41] ([74.125.82.41:54003] helo=mail-wg0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B2/02-61664-ADBFBA45 for ; Tue, 06 Jan 2015 10:14:34 -0500 Received: by mail-wg0-f41.google.com with SMTP id l18so4216112wgh.28 for ; Tue, 06 Jan 2015 07:14:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=hLuLSU32Rhr9U9O/Ocd7bLElBf0c9kjWv3Az3bMWdhs=; b=jGc6OMh1AiiMMMEz1gJl5JuSHZsncuIGUiuFj3xU9LxotBcPhEBK/HUWgPgeF3mzj6 ImCfWep26j/zRiKExmLU4wpFgZ/JeEU1d3wBsQWqVfCFmGCWiC3g/aQg7GSWVgh+Pp7h hqilQGMhf5eBX4rjYt7OsxzPUsF94cvAZEOtoZsCqIg7oEOrDFNb9Iyu8aEvyybPaGxq tQ6BEGB+D2SMhppSIicjiRgQT3G/yfZD+/4hcmcuxqaEM0E16YSU8ByLCY9WfX2VbScU 9+p+xCTurG9ZrcH7Q9OEYj4yZyqFSWXhyphftC1qimEU2cEKNn8FGoEnj5iYcJYeuHwe y7vQ== X-Gm-Message-State: ALoCoQlgpX4Ol/hiwRq5zpEgq3+rklWmWyJfdKBtaEZphirDWry9iV3Cib4ztXiIh6bk0fx37S+5 X-Received: by 10.194.23.6 with SMTP id i6mr134064841wjf.26.1420557270430; Tue, 06 Jan 2015 07:14:30 -0800 (PST) Received: from [192.168.19.5] (ipbcc0d8c7.dynamic.kabel-deutschland.de. [188.192.216.199]) by mx.google.com with ESMTPSA id x6sm46069298wjf.24.2015.01.06.07.14.26 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Jan 2015 07:14:29 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: Date: Tue, 6 Jan 2015 16:14:25 +0100 Cc: Xinchen Hui , PHP Internals , Dmitry Stogov , Nikita Popov Content-Transfer-Encoding: quoted-printable Message-ID: <24E2F76C-50D8-40CC-B871-BA0CDFBCBCBB@heroku.com> References: To: Pierre Joye X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] Faster zend sorting implementation From: dz@heroku.com (David Zuelke) On 06.01.2015, at 05:42, Pierre Joye wrote: > I am not sure about that. Introducing a not easy to catch BC break for > 0.1% gain on function (or even for the whole app) is not very > appealing. >=20 > However, there is nothing in the documentation actually describing how > it works and there are clear warnings about the unpredictable results. > That means we won't actually break it,per definition. I only wonder if > it is worth the effort for such little gain (yes, the ocean is made of > drops ;). The clear benefit I see is that it turns it into a stable sort, although = we could of course always break that again in the future unless we = explicitly specify/guarantee it to be stable from now on (without any = other guarantees about the algorithm).