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: Re: [PATCH] Performance improvement for R6RS records Date: Mon, 20 Sep 2010 09:20:41 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1284967070 32608 80.91.229.12 (20 Sep 2010 07:17:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Sep 2010 07:17:50 +0000 (UTC) Cc: guile-devel To: Julian Graham Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 20 09:17:49 2010 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.69) (envelope-from ) id 1OxadB-00071a-39 for guile-devel@m.gmane.org; Mon, 20 Sep 2010 09:17:46 +0200 Original-Received: from localhost ([127.0.0.1]:50772 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oxad4-00061Y-4J for guile-devel@m.gmane.org; Mon, 20 Sep 2010 03:17:34 -0400 Original-Received: from [140.186.70.92] (port=41358 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oxacz-00060s-MA for guile-devel@gnu.org; Mon, 20 Sep 2010 03:17:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oxacy-00073f-4g for guile-devel@gnu.org; Mon, 20 Sep 2010 03:17:29 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:39381 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oxacy-00073a-0z for guile-devel@gnu.org; Mon, 20 Sep 2010 03:17:28 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id DAC37D7CE1; Mon, 20 Sep 2010 03:17:26 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=s+zuXZVwU507 OUfO8xWP+KzbP70=; b=uMgGy3HCqdVuJdHIFW+1L3upQQ9GU4isYxUsijxS3j/P WVDqzHFFt24VnXhY6VNu9P/zrMIK/bO/MLMmDAC91+2HohJw1L0yUYDJ2L5mCijl e4pNJQq6/2e1IWR84n3k3juD6JNQppjQUyNmlTKQgstVKiR24J+CBUbKp1zh4s0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=Or5uKS phGFnTsuG6nSYcdxokoG3YPoANE2r7orn2F5V1WPpd3344K92UHwcUbKYNJ1mNh2 55Smr64tGB/f94YedMhf1Zu0kq2dv2IxRDbiHKeYpdFf6XkWpiZYrXw4h/4COhQn eQaeowy4VfxxWUQh017VVfj261n7lNVknES34= Original-Received: from a-pb-sasl-quonix. (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id C00F1D7CDF; Mon, 20 Sep 2010 03:17:25 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [88.17.207.25]) (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 2BDAAD7CD3; Mon, 20 Sep 2010 03:17:23 -0400 (EDT) In-Reply-To: (Julian Graham's message of "Sun, 19 Sep 2010 11:28:49 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 1E9C2C78-C487-11DF-AD06-030CEE7EF46B-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:10942 Archived-At: On Sun 19 Sep 2010 17:28, Julian Graham writes: >> Is it possible to keep the current flat record layout, and change this >> check to be: >> >> =C2=A0(define (record-internal? obj) >> =C2=A0 =C2=A0(and (struct? obj) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 (eq? (struct-vtable (struct-vtable obj)) >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0record-type-vtable))) >> >> What kind of performance do you get there? > > I'm probably misunderstanding things, but this code doesn't work for > me -- I think there are some other modifications that'd be necessary. > I'm guessing you're proposing something along the lines of using > Vtable Vtables, as described in manual section 5.6.9.4? No not really; just that record-types should be instances of record-type-vtable, which itself is a normal vtable (not a vtable-vtable). Will elaborate later, have to run out the door :) A --=20 http://wingolog.org/