From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: Increase gc-cons-threshold during package-init? Date: Mon, 19 Feb 2018 09:27:36 -0800 Message-ID: <06fe2d66-bc22-3006-f9f0-17e9b63d0061@dancol.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1519061208 17481 195.159.176.226 (19 Feb 2018 17:26:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Feb 2018 17:26:48 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 To: "T.V Raman" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 19 18:26:44 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enpD7-0004Cn-TZ for ged-emacs-devel@m.gmane.org; Mon, 19 Feb 2018 18:26:42 +0100 Original-Received: from localhost ([::1]:51552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enpFA-0000ON-3a for ged-emacs-devel@m.gmane.org; Mon, 19 Feb 2018 12:28:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enpE8-00005p-Ob for emacs-devel@gnu.org; Mon, 19 Feb 2018 12:27:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enpE7-0007at-TJ for emacs-devel@gnu.org; Mon, 19 Feb 2018 12:27:44 -0500 Original-Received: from dancol.org ([2600:3c01::f03c:91ff:fedf:adf3]:52362) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enpE7-0007aL-IH for emacs-devel@gnu.org; Mon, 19 Feb 2018 12:27:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject; bh=lvCgxSZiB4oJqaV3KwF6PUuh7aPcRwQz9rULfTdNxaU=; b=SkeM4N8Yv12WPv0Rac9taQ3Rg0wVe+mSkHkW3EOAGzLbSv9qhZ2YXTrH+hKZCOZU3jZhhHq29Oa3gqtEk4GnLdXe/CDdX1vxR4BJp1DNoy3ZylCFhByktYqmv6xWW+01QMGcLoA+O8zAxg/+mkUCfO7AhFka01u9XxA8qWnXxbN7gbLKzcAt0TDpR8IwNSTLLfQAm80LiX0zb9i98XO8cxdncEaZBQytpwkazx2EfqWddG4rVRTph+4rUrBVLMIoWoZWQnWkI4JwvK8yXxYdqNd3EczeBMJTh9aleDetIvthiuY9UpcLFirzHQ3oN8Fbp6imzqhy+AVnEl9DMtjR7w==; Original-Received: from [2604:4080:1321:8ab0:a53d:5d5d:b924:65a4] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1enpE6-00010S-EU; Mon, 19 Feb 2018 09:27:42 -0800 In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2600:3c01::f03c:91ff:fedf:adf3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:222906 Archived-At: On 02/19/2018 09:23 AM, T.V Raman wrote: > With Emacs now calling package-initialize on its own, I noticed (after > removing package-initialize from my emacs init file) > that emacs startup was now entailing 3 times as many gc calls during > startup as before. One guess is that my init file was lexically > binding gc-cons-threshold to 64MB --- the default gc-cons-threshold > of 800K is likely from the past and could be increased. There's a tradeoff though: increasing gc-cons-threshold means that the GC that eventually occurs takes longer. I wish we had generational GC.