From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: gc_inline.h Date: Fri, 22 Nov 2013 10:09:37 +0100 Message-ID: <87ppps4xbi.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385652489 22071 80.91.229.3 (28 Nov 2013 15:28:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Nov 2013 15:28:09 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Nov 28 16:28:11 2013 Return-path: Envelope-to: guile-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 1Vm3Vj-00048Y-D0 for guile-devel@m.gmane.org; Thu, 28 Nov 2013 16:28:11 +0100 Original-Received: from localhost ([::1]:42638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm3Vi-0000Zd-V7 for guile-devel@m.gmane.org; Thu, 28 Nov 2013 10:28:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm3Vb-0000Ye-4V for guile-devel@gnu.org; Thu, 28 Nov 2013 10:28:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vm3VW-0001bG-0h for guile-devel@gnu.org; Thu, 28 Nov 2013 10:28:03 -0500 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:46656 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm3VV-0001aT-T7 for guile-devel@gnu.org; Thu, 28 Nov 2013 10:27:57 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 1DBF0DDFF for ; Thu, 28 Nov 2013 10:27:57 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:mime-version:content-type; s=sasl; bh=i RXAM5v24i6rpMEeOaMJM1uQCho=; b=mMzL0rbjU3GzZHcmFJ0zNqwSaKXkjR1L4 PDQr8XMt/2knpzKxiJf5AMHiFyrO+HWgffeisW6bFyZIWtR69wqRBO803rXnoxZq pXfVxpGYP24L93ttSo1IG9OYVIsHwCgDqvsl/nKyiXKh+GwDAul8Fow1KHFvqnTH y8iFdkEatY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=sasl; b=UQt om1B9G3BshL5flkC6r58Y0Ic+VwAsFd/wFt4Bo99cqkJRdA1hVxhHML4QHZdVytL 3WQ78aN3gBUK5YdNywmNBlzs3OkdraqFg8sRvIUmrVgysCLh928EAldYFQwfjDmg u+jUuTB0IchCiz4Jr6sGiSng2KpJ+DIFjogEY1g8= Original-Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 168CDDDFE for ; Thu, 28 Nov 2013 10:27:57 -0500 (EST) Original-Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 729A0DDFD for ; Thu, 28 Nov 2013 10:27:56 -0500 (EST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Pobox-Relay-ID: A7FEF17A-5841-11E3-8A2D-F66B0E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 208.72.237.25 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16762 Archived-At: It seems that the BDW GC, since version 7 or so, supports inline allocation with thread-local freelists. See gc_inline.h. We can probably improve our allocation speed significantly by using this allocator in Guile. It would require adding a freelist to scm_i_thread, and passing the thread around wherever we would want inline allocation, but that is already the case in the VM. Could be a neat little project for someone -- mostly on master, where we require BDW-GC 7.2. Cheers, Andy -- http://wingolog.org/