guile-devel
[Top][All Lists]
Advanced

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

Re: Optimizing record accessors


From: Ludovic Courtès
Subject: Re: Optimizing record accessors
Date: Tue, 21 Aug 2007 09:58:51 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Hi,

Kevin Ryde <address@hidden> writes:

> Gets rid of one scheme function call in the normal case does it?

Two calls, because `record-type-check' called `record-type-descriptor'.

> I expect an apply-able smob thingie would be fastest (and smaller too)
> for accessors and modifiers, if anyone felt like going down that track.
> Probably quite worthwhile on the general principle of getting low-level
> bits running fast.

Yes, probably the right solution.  I thought about it but then didn't
feel like writing C.  ;-)

> As long as it's still `wrong-type-arg' it ought to be ok.

It was either `wrong-type-arg' or `not-a-record', which was not
documented.  Now, it's always `wrong-type-arg'.

Thanks,
Ludovic.




reply via email to

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