From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Carsten Mattner Newsgroups: gmane.emacs.devel Subject: Re: Proposal: block-based vector allocator Date: Wed, 7 Dec 2011 13:27:20 +0100 Message-ID: References: <4EDDA68B.5050601@yandex.ru> <4EDE315E.3030804@yandex.ru> <4EDEF421.6090800@yandex.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1323260855 4817 80.91.229.12 (7 Dec 2011 12:27:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Dec 2011 12:27:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 07 13:27:30 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RYGaw-0001Zq-LI for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2011 13:27:30 +0100 Original-Received: from localhost ([::1]:35227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYGav-0001a2-Q8 for ged-emacs-devel@m.gmane.org; Wed, 07 Dec 2011 07:27:29 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYGao-0001Zs-Qw for emacs-devel@gnu.org; Wed, 07 Dec 2011 07:27:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RYGan-0000gt-NF for emacs-devel@gnu.org; Wed, 07 Dec 2011 07:27:22 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:56270) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RYGan-0000gd-JK for emacs-devel@gnu.org; Wed, 07 Dec 2011 07:27:21 -0500 Original-Received: by iahk25 with SMTP id k25so1018991iah.0 for ; Wed, 07 Dec 2011 04:27:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=OdlG4zRMWa61UiXNRAc9PXqqkvdJwPlacYzLMfqTLR0=; b=OBhe5K3i79vnWvN6hCOgHsLH1pjzRNs7xaKZKZ3hao5naWEFQdvn+YichfRiKmvvX7 aFt7g3C/5OzanvQS8rJgO42Q00yFW1DTL8iwq7se8Ye/iglrVKR+pM1M64FkBRjIbDoj hkQw31zRCgAkWJwYmgHfYD8PD+tshLh3zjrZM= Original-Received: by 10.42.163.202 with SMTP id d10mr18527223icy.47.1323260840437; Wed, 07 Dec 2011 04:27:20 -0800 (PST) Original-Received: by 10.50.190.167 with HTTP; Wed, 7 Dec 2011 04:27:20 -0800 (PST) In-Reply-To: <4EDEF421.6090800@yandex.ru> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 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:146541 Archived-At: On Wed, Dec 7, 2011 at 6:05 AM, Dmitry Antipov wrote: > On 12/06/2011 11:39 PM, Stefan Monnier wrote: >> So we should have a fair bit of wiggle room here. =A0Especially since I'= m >> not specifically interested in reducing memory use as much as getting >> rid of the O(log n) overhead and generally making smallish >> "defstruct-style" vectors more efficient. > > > This approach looks pretty strange for anyone who looks through this list= 's > archives: "my Emacs is too slow" noise is quite rare, but "my Emacs is > too fat" topics are raised over and over again. > > I believe Emacs is fast enough to be a good editor on any reasonable > hardware. > Even for an instance bloated with a few hundreds of buffers, I never seen > a GC longer than 0.1s, which is faster than a keystroke. So, eliminating > an logarithmic overhead in one of internal subsystems is insignificant. B= ut, > when an editor with 0 (zero) open files consumes more memory than a web > browser with 10 open tabs, it's just a shame. For what it's worth I'd like to second that based on my emacs experience.