[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Performance improvement for R6RS records

From: Andy Wingo
Subject: Re: [PATCH] Performance improvement for R6RS records
Date: Mon, 20 Sep 2010 09:20:41 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

On Sun 19 Sep 2010 17:28, Julian Graham <address@hidden> writes:

>> Is it possible to keep the current flat record layout, and change this
>> check to be:
>>  (define (record-internal? obj)
>>    (and (struct? obj)
>>         (eq? (struct-vtable (struct-vtable obj))
>>              record-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

No not really; just that record-types should be instances of
record-type-vtable, which itself is a normal vtable (not a

Will elaborate later, have to run out the door :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]