From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Default history-length should be higher Date: Sun, 26 Jan 2014 21:44:35 +0200 Message-ID: <83r47ua5p8.fsf@gnu.org> References: <7a6753c5-cac9-4e60-be73-42467784e8eb@default> <8761p7uykd.fsf@maru2.md5i.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1390765493 20849 80.91.229.3 (26 Jan 2014 19:44:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Jan 2014 19:44:53 +0000 (UTC) Cc: mwd@md5i.com, emacs-devel@gnu.org To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 26 20:44:59 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 1W7Vdb-0003Cj-AE for ged-emacs-devel@m.gmane.org; Sun, 26 Jan 2014 20:44:59 +0100 Original-Received: from localhost ([::1]:56131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7Vda-0008KZ-W5 for ged-emacs-devel@m.gmane.org; Sun, 26 Jan 2014 14:44:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7VdU-0008J2-1l for emacs-devel@gnu.org; Sun, 26 Jan 2014 14:44:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W7VdO-0005sY-LN for emacs-devel@gnu.org; Sun, 26 Jan 2014 14:44:52 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:34353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W7VdO-0005sP-Cy for emacs-devel@gnu.org; Sun, 26 Jan 2014 14:44:46 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0N0000100WXQ9700@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sun, 26 Jan 2014 21:44:45 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N00001PQXIK5880@a-mtaout23.012.net.il>; Sun, 26 Jan 2014 21:44:45 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:169142 Archived-At: > Date: Sun, 26 Jan 2014 21:22:37 +0200 > From: Bozhidar Batsov > Cc: emacs-devel > > While we're at it - why not increase the default `gc-cons-threshold' as > well. Currently the default is 0.8 MB, which seems super-conservative given > today most computers have 1GB+ of memory. Code that creates a lot of > objects would obviously be impacted significantly, since GC would be > performed frequently. Setting it to something in between 10MB and 50MB > seems much more reasonable to me. Did you try that? If not, please do. In my experience, your suggestion has a downside: the GC indeed happens less frequently, but when it does, it takes an annoyingly long time. I find it easier to tolerate many GCs that run to completion in less than a second, than to have a few GCs that take several seconds each.