From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: freeing srcprops ? Date: Sun, 28 Jan 2007 09:08:52 +0000 Message-ID: <87hcub4ixn.fsf@ossau.uklinux.net> References: <87k5zjapmp.fsf@zip.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169975368 22918 80.91.229.12 (28 Jan 2007 09:09:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Jan 2007 09:09:28 +0000 (UTC) Cc: guile-devel@gnu.org To: hanwen@xs4all.nl Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jan 28 10:09:21 2007 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HB62H-000591-4U for guile-devel@m.gmane.org; Sun, 28 Jan 2007 10:09:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HB62G-0000my-O8 for guile-devel@m.gmane.org; Sun, 28 Jan 2007 04:09:16 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HB62A-0000mt-13 for guile-devel@gnu.org; Sun, 28 Jan 2007 04:09:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HB627-0000mh-R9 for guile-devel@gnu.org; Sun, 28 Jan 2007 04:09:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HB627-0000me-NZ for guile-devel@gnu.org; Sun, 28 Jan 2007 04:09:07 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HB627-0005vu-Bv for guile-devel@gnu.org; Sun, 28 Jan 2007 04:09:07 -0500 Original-Received: from laruns (host86-145-157-83.range86-145.btcentralplus.com [86.145.157.83]) by mail3.uklinux.net (Postfix) with ESMTP id 8C01D40A887; Sun, 28 Jan 2007 09:09:06 +0000 (UTC) Original-Received: from laruns (laruns [127.0.0.1]) by laruns (Postfix) with ESMTP id B1CCA6F884; Sun, 28 Jan 2007 09:08:52 +0000 (GMT) In-Reply-To: <87k5zjapmp.fsf@zip.com.au> (Kevin Ryde's message of "Fri, 19 Jan 2007 10:20:30 +1100") User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:6494 Archived-At: Kevin Ryde writes: > Han-Wen Nienhuys writes: >> >> why use a separate storage pool for srcprop objects? > > At a guess, is it because that they're likely to never need freeing, > hence can be laid down in big blocks. I'd guess because setting up a srcprops is critical to start-up performance, and a double cell doesn't have enough slots to store all the common properties (filename, pos, copy) directly (as your change makes clear). So I'd expect --debug start up to go a little more slowly after your change. Did you make any measurements? Also, did you find that the change saved a lot of memory for Lilypond? It's not obvious to me why it should have done, just moving srcprops from a specialized storage to the general cell heap. Regards, Neil _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel