From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julian Graham Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Performance improvement for R6RS records Date: Sun, 19 Sep 2010 11:28:49 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1284910138 9608 80.91.229.12 (19 Sep 2010 15:28:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 19 Sep 2010 15:28:58 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Sep 19 17:28:57 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 1OxLp2-0004so-QG for guile-devel@m.gmane.org; Sun, 19 Sep 2010 17:28:57 +0200 Original-Received: from localhost ([127.0.0.1]:34450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxLp2-0006bs-Ia for guile-devel@m.gmane.org; Sun, 19 Sep 2010 11:28:56 -0400 Original-Received: from [140.186.70.92] (port=47406 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxLoy-0006bP-8m for guile-devel@gnu.org; Sun, 19 Sep 2010 11:28:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxLow-0003Tj-T2 for guile-devel@gnu.org; Sun, 19 Sep 2010 11:28:51 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:47233) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxLow-0003Tf-PZ for guile-devel@gnu.org; Sun, 19 Sep 2010 11:28:50 -0400 Original-Received: by iwn33 with SMTP id 33so5720559iwn.0 for ; Sun, 19 Sep 2010 08:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=u+pmN6MDcvQo+28vEMmwCUGnHYgRBdueK6j79FWukto=; b=oI9K9BYV1+9AAIQCk7IrLdzK7wJIXacPQINS2l60EgjrHMdcGJBsG3HKAff1idVfro J2ZGkfNfnYpSVpyxsmuF0/ZQajT9xEcPQJ+cjqMgdyQBb5dGVCAbTXDnllp1xOVHI/Md esI6WebsiLS2lJ5JdGC1zUOGhhsrlWdS9scbM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=a90PCJEMcbjwKIv8txLNdxsO3M/VMJzupYsSjiiU0/Y49bAluFhyfe6fHz4VlrwYZU 6wUjtSwvQTrB/K8/Bg6P800lL24sPjZRU0YEcpyGet6Eh5/FaoVJdrQwbq1qIboeXIqz C4Vwtr0dW0sTiw5eAviotTjLpRGuTw4iSHUQk= Original-Received: by 10.231.32.140 with SMTP id c12mr8202175ibd.90.1284910130020; Sun, 19 Sep 2010 08:28:50 -0700 (PDT) Original-Received: by 10.231.158.193 with HTTP; Sun, 19 Sep 2010 08:28:49 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:10938 Archived-At: Hey Andy, > Is it possible to keep the current flat record layout, and change this > check to be: > > =A0(define (record-internal? obj) > =A0 =A0(and (struct? obj) > =A0 =A0 =A0 =A0 (eq? (struct-vtable (struct-vtable obj)) > =A0 =A0 =A0 =A0 =A0 =A0 =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? Regards, Julian